mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-22 04:49:12 -06:00
Fix issue with the TileProviderByLevel example when no name is specified
This commit is contained in:
Submodule ext/ghoul updated: 4d00dce26b...5a8bb0e29d
@@ -87,8 +87,13 @@ TileProviderByLevel::TileProviderByLevel(const ghoul::Dictionary& dictionary) {
|
||||
|
||||
const std::string provId = tileProviderDict.value<std::string>("Identifier");
|
||||
tp->setIdentifier(provId);
|
||||
const std::string providerName = tileProviderDict.value<std::string>("Name");
|
||||
tp->setGuiName(providerName);
|
||||
if (tileProviderDict.hasValue<std::string>("Name")) {
|
||||
const std::string providerName = tileProviderDict.value<std::string>("Name");
|
||||
tp->setGuiName(providerName);
|
||||
}
|
||||
else {
|
||||
tp->setGuiName(provId);
|
||||
}
|
||||
addPropertySubOwner(tp.get());
|
||||
|
||||
_levelTileProviders.push_back(std::move(tp));
|
||||
|
||||
Reference in New Issue
Block a user