Layer naming updates

This commit is contained in:
Dan Paulat 2023-11-03 05:42:32 -05:00
parent 44ada2cc8d
commit 7e2fd7c109
2 changed files with 2 additions and 2 deletions

View file

@ -973,7 +973,7 @@ void MapWidgetImpl::AddPlacefileLayer(const std::string& placefileName,
std::string std::string
MapWidgetImpl::GetPlacefileLayerName(const std::string& placefileName) MapWidgetImpl::GetPlacefileLayerName(const std::string& placefileName)
{ {
return fmt::format("placefile-{}", placefileName); return types::GetLayerName(types::LayerType::Placefile, placefileName);
} }
void MapWidgetImpl::AddLayer(const std::string& id, void MapWidgetImpl::AddLayer(const std::string& id,

View file

@ -152,7 +152,7 @@ std::string GetLayerDescriptionName(LayerDescription description)
} }
else if (std::holds_alternative<awips::Phenomenon>(description)) else if (std::holds_alternative<awips::Phenomenon>(description))
{ {
return awips::GetPhenomenonText(std::get<awips::Phenomenon>(description)); return awips::GetPhenomenonCode(std::get<awips::Phenomenon>(description));
} }
else if (std::holds_alternative<std::monostate>(description)) else if (std::holds_alternative<std::monostate>(description))
{ {