diff --git a/scwx-qt/source/scwx/qt/map/map_widget.cpp b/scwx-qt/source/scwx/qt/map/map_widget.cpp index 403a15c4..35e4bd2e 100644 --- a/scwx-qt/source/scwx/qt/map/map_widget.cpp +++ b/scwx-qt/source/scwx/qt/map/map_widget.cpp @@ -973,7 +973,7 @@ void MapWidgetImpl::AddPlacefileLayer(const std::string& placefileName, std::string 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, diff --git a/scwx-qt/source/scwx/qt/types/layer_types.cpp b/scwx-qt/source/scwx/qt/types/layer_types.cpp index 0f7e1db8..c25beb12 100644 --- a/scwx-qt/source/scwx/qt/types/layer_types.cpp +++ b/scwx-qt/source/scwx/qt/types/layer_types.cpp @@ -152,7 +152,7 @@ std::string GetLayerDescriptionName(LayerDescription description) } else if (std::holds_alternative(description)) { - return awips::GetPhenomenonText(std::get(description)); + return awips::GetPhenomenonCode(std::get(description)); } else if (std::holds_alternative(description)) {