TMewesGalileo commited on
Commit
f685be0
·
verified ·
1 Parent(s): 26bc902

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -15,6 +15,14 @@ def convert_json_to_kml(json_file_path):
15
  name = SubElement(placemark, 'name')
16
  name.text = f"Track {i + 1}"
17
 
 
 
 
 
 
 
 
 
18
  linestring = SubElement(placemark, 'LineString')
19
  tessellate = SubElement(linestring, 'tessellate')
20
  tessellate.text = '1'
 
15
  name = SubElement(placemark, 'name')
16
  name.text = f"Track {i + 1}"
17
 
18
+ # Style for pink line, width 2
19
+ style = SubElement(placemark, 'Style')
20
+ linestyle = SubElement(style, 'LineStyle')
21
+ color = SubElement(linestyle, 'color')
22
+ color.text = 'ff00caff' # pink (AABBGGRR)
23
+ width = SubElement(linestyle, 'width')
24
+ width.text = '2'
25
+
26
  linestring = SubElement(placemark, 'LineString')
27
  tessellate = SubElement(linestring, 'tessellate')
28
  tessellate.text = '1'