diff --git a/plugins/feature/map/czml.cpp b/plugins/feature/map/czml.cpp index 0be708a02..1ba0f1bb0 100644 --- a/plugins/feature/map/czml.cpp +++ b/plugins/feature/map/czml.cpp @@ -510,8 +510,10 @@ QJsonObject CZML::update(ObjectMapItem *mapItem, bool isTarget, bool isSelected) QJsonObject labelDistanceDisplayCondition { {"distanceDisplayCondition", labelDisplayDistance} }; + QString labelText = mapItem->m_label; + labelText.replace("
", "\n"); QJsonObject label { - {"text", mapItem->m_label}, + {"text", labelText}, {"show", m_settings->m_displayNames && mapItem->m_itemSettings->m_enabled && mapItem->m_itemSettings->m_display3DLabel}, {"scale", mapItem->m_itemSettings->m_3DLabelScale}, {"pixelOffset", labelPixelOffset},