From: Martin Skorupski Date: Tue, 8 Oct 2024 16:47:48 +0000 (+0200) Subject: All links to kml X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=72f15e7278f6716b2c3725e462698a7a3d2aa1fe;p=oam.git 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 --- 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 @@ 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"])