mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:20:06 +00:00
With MapTiler, use https for style URLs
- Eliminates issues with rewriting maptiler:// to incorrect URLs
This commit is contained in:
parent
a74fb22c88
commit
e0c1138250
5 changed files with 49 additions and 19 deletions
|
|
@ -737,7 +737,8 @@ void MapWidget::SetMapStyle(const std::string& styleName)
|
|||
|
||||
logger_->debug("Updating style: {}", styles[i].name_);
|
||||
|
||||
p->map_->setStyleUrl(styles[i].url_.c_str());
|
||||
util::maplibre::SetMapStyleUrl(
|
||||
p->map_, p->mapProvider_, styles[i].url_);
|
||||
|
||||
if (++p->currentStyleIndex_ == styles.size())
|
||||
{
|
||||
|
|
@ -763,7 +764,8 @@ void MapWidget::changeStyle()
|
|||
|
||||
logger_->debug("Updating style: {}", styles[p->currentStyleIndex_].name_);
|
||||
|
||||
p->map_->setStyleUrl(styles[p->currentStyleIndex_].url_.c_str());
|
||||
util::maplibre::SetMapStyleUrl(
|
||||
p->map_, p->mapProvider_, styles[p->currentStyleIndex_].url_);
|
||||
|
||||
if (++p->currentStyleIndex_ == styles.size())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue