Merge pull request #1063 from oterral/parsing_stylemap
Parsing styleMap (r=@bartvde)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user