Fix styleUrl parsing

This commit is contained in:
Olivier Terral
2013-09-23 14:06:52 +02:00
parent 39e56f3e61
commit e7222c040c
3 changed files with 46 additions and 29 deletions

View File

@@ -262,14 +262,22 @@
-112.2626894973474,36.10149062823369,630 </coordinates>
</LineString>
</Placemark>
<Placemark>
<name>Blue Icon</name>
<description>Just another blue icon.</description>
<styleUrl>data/kml/styles.kml#blueIcons</styleUrl>
<Point>
<coordinates>-112.292238941097,36.09520916122063,630</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Blue Icon</name>
<description>Just another blue icon.</description>
<styleUrl>data/kml/styles.kml#blueIcons</styleUrl>
<Point>
<coordinates>-112.292238941097,36.09520916122063,630</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Sun Icon</name>
<description>Just another sun icon.</description>
<styleUrl>data/kml/styles.kml#sunIconMap</styleUrl>
<Point>
<coordinates>-112.292238941097,36.15520916122063,630</coordinates>
</Point>
</Placemark>
</Folder>
</Document>
</kml>

View File

@@ -17,5 +17,16 @@ http://kml-samples.googlecode.com/svn/trunk/kml/Style/styles.kml
</IconStyle>
</Style>
<StyleMap id="sunIconMap">
<Pair>
<key>normal</key>
<styleUrl>#blueIcons</styleUrl>
</Pair>
<Pair>
<key>highlight</key>
<styleUrl>#blueIcons</styleUrl>
</Pair>
</StyleMap>
</Document>
</kml>