diff --git a/scwx-qt/source/scwx/qt/map/alert_layer.cpp b/scwx-qt/source/scwx/qt/map/alert_layer.cpp index c7a8f1bd..8c2e33b0 100644 --- a/scwx-qt/source/scwx/qt/map/alert_layer.cpp +++ b/scwx-qt/source/scwx/qt/map/alert_layer.cpp @@ -401,16 +401,16 @@ AddAlertLayer(std::shared_ptr map, const float opacity = outlineColor[3] / 255.0f; - map->addLayer({{"id", bgLayerId}, {"type", "line"}, {"source", sourceId}}, - beforeLayer); + map->addLayer( + bgLayerId, {{"type", "line"}, {"source", sourceId}}, beforeLayer); map->setLayoutProperty(bgLayerId, "line-join", "round"); map->setLayoutProperty(bgLayerId, "line-cap", "round"); map->setPaintProperty(bgLayerId, "line-color", "rgba(0, 0, 0, 255)"); map->setPaintProperty(bgLayerId, "line-opacity", QString("%1").arg(opacity)); map->setPaintProperty(bgLayerId, "line-width", "5"); - map->addLayer({{"id", fgLayerId}, {"type", "line"}, {"source", sourceId}}, - beforeLayer); + map->addLayer( + fgLayerId, {{"type", "line"}, {"source", sourceId}}, beforeLayer); map->setLayoutProperty(fgLayerId, "line-join", "round"); map->setLayoutProperty(fgLayerId, "line-cap", "round"); map->setPaintProperty(fgLayerId, @@ -431,7 +431,7 @@ CreateFeature(const awips::CodedLocation& codedLocation) { auto mapboxCoordinates = GetMapboxCoordinates(codedLocation); - return { + return QMapLibre::Feature { QMapLibre::Feature::PolygonType, std::initializer_list { std::initializer_list {{mapboxCoordinates}}}}; diff --git a/scwx-qt/source/scwx/qt/map/radar_range_layer.cpp b/scwx-qt/source/scwx/qt/map/radar_range_layer.cpp index 66ce5df7..e660c266 100644 --- a/scwx-qt/source/scwx/qt/map/radar_range_layer.cpp +++ b/scwx-qt/source/scwx/qt/map/radar_range_layer.cpp @@ -44,8 +44,7 @@ void RadarRangeLayer::Add(std::shared_ptr map, "rangeCircleSource", {{"type", "geojson"}, {"data", QVariant::fromValue(*rangeCircle)}}); map->addLayer( - {{"id", layerId}, {"type", "line"}, {"source", "rangeCircleSource"}}, - before); + layerId, {{"type", "line"}, {"source", "rangeCircleSource"}}, before); map->setPaintProperty(layerId, "line-color", "rgba(128, 128, 128, 128)"); }