From f34131041921c2ba467cc4e819869c1c7e8af750 Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Fri, 15 Aug 2025 17:50:47 +0200 Subject: [PATCH] Fix issue with the TileProviderByLevel example when no name is specified --- ext/ghoul | 2 +- .../src/tileprovider/tileproviderbylevel.cpp | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ext/ghoul b/ext/ghoul index 4d00dce26b..5a8bb0e29d 160000 --- a/ext/ghoul +++ b/ext/ghoul @@ -1 +1 @@ -Subproject commit 4d00dce26b720b7a8b7918a1acfd8977ae7c999b +Subproject commit 5a8bb0e29d3ab260ed5a63451c7f13f621b701ae diff --git a/modules/globebrowsing/src/tileprovider/tileproviderbylevel.cpp b/modules/globebrowsing/src/tileprovider/tileproviderbylevel.cpp index e12fc2f793..df59938b58 100644 --- a/modules/globebrowsing/src/tileprovider/tileproviderbylevel.cpp +++ b/modules/globebrowsing/src/tileprovider/tileproviderbylevel.cpp @@ -87,8 +87,13 @@ TileProviderByLevel::TileProviderByLevel(const ghoul::Dictionary& dictionary) { const std::string provId = tileProviderDict.value("Identifier"); tp->setIdentifier(provId); - const std::string providerName = tileProviderDict.value("Name"); - tp->setGuiName(providerName); + if (tileProviderDict.hasValue("Name")) { + const std::string providerName = tileProviderDict.value("Name"); + tp->setGuiName(providerName); + } + else { + tp->setGuiName(provId); + } addPropertySubOwner(tp.get()); _levelTileProviders.push_back(std::move(tp));