With MapTiler, use https for style URLs

- Eliminates issues with rewriting maptiler:// to incorrect URLs
This commit is contained in:
Dan Paulat 2024-03-02 00:10:21 -06:00
parent a74fb22c88
commit e0c1138250
5 changed files with 49 additions and 19 deletions

View file

@ -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())
{