We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a099f6 commit b9c4a97Copy full SHA for b9c4a97
MAVProxy/modules/lib/kmlread.py
@@ -11,7 +11,10 @@
11
import pathlib
12
import re
13
14
-namespaces = {'kml': 'http://www.opengis.net/kml/2.2'}
+namespaces = {
15
+ 'kml': 'http://www.opengis.net/kml/2.2',
16
+ 'gx': 'http://www.google.com/kml/ext/2.2',
17
+}
18
19
20
class Style():
@@ -167,8 +170,9 @@ def parse(self):
167
170
168
171
# extract styles:
169
172
self.style = {}
- for s in self.tree.findall(".//kml:Style", namespaces):
- _id = s.get("id")
173
+ for s in self.tree.findall(".//gx:CascadingStyle", namespaces):
174
+ idname = f"{{{namespaces['kml']}}}id"
175
+ _id = s.get(idname)
176
style = Style(_id)
177
self.style[_id] = style
178
line_style = find_tag_recursive(s, 'LineStyle')
0 commit comments