All links to kml
- 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>
diff --git a/code/network-generator/network_generation/view/network_viewer.py b/code/network-generator/network_generation/view/network_viewer.py
index 79827bb..67fa024 100644
--- a/code/network-generator/network_generation/view/network_viewer.py
+++ b/code/network-generator/network_generation/view/network_viewer.py
@@ -138,6 +138,20 @@
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"])