All links to kml 28/13528/1
authorMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Tue, 8 Oct 2024 16:47:48 +0000 (18:47 +0200)
committerMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Tue, 8 Oct 2024 16:47:48 +0000 (18:47 +0200)
- consume new styles and add new functions for lines and points and labels

Issue-ID: OAM-395
Change-Id: I5c5a7cd29a1827e8ada611bf16a0f8923ac9046e
Signed-off-by: Martin Skorupski <martin.skorupski@highstreet-technologies.com>
code/network-generator/network_generation/view/network_viewer.py

index 79827bb..67fa024 100644 (file)
@@ -138,6 +138,20 @@ class NetworkViewer:
             for key, value in styles.items():
                 # add style
                 style = ET.Element("Style", {"id": key})
+                label_style = ET.SubElement(style, "LabelStyle")
+                label_scale = ET.SubElement(label_style, "scale")
+                label_scale.text = "0"
+                
+                icon_style = ET.SubElement(style, "IconStyle")
+                icon_color = ET.SubElement(icon_style, "color")
+                icon_color.text = str(value["stroke"]["color"])
+                scale = ET.SubElement(icon_style, "scale")
+                scale.text = "0.5"
+                icon = ET.SubElement(icon_style, "Icon")
+                href = ET.SubElement(icon, "href")
+                href.text = (
+                    "http://maps.google.com/mapfiles/kml/shapes"
+                    "/placemark_circle.png")
                 line_style = ET.SubElement(style, "LineStyle")
                 color = ET.SubElement(line_style, "color")
                 color.text = str(value["stroke"]["color"])