kml:StyleMap

Element Information

Model

Children: kml:Pair

Attributes

QName Type Fixed Default Use Inheritable Annotation
id ID optional
targetId NCName optional

Source

<element name="StyleMap" type="kml:StyleMapType" substitutionGroup="kml:StyleSelector"/>

Sample

< Document xmlns = "http://www.opengis.net/kml/2.2" >

[...]

< name>

Highlighted Icon

</ name>

< visibility>

0

</ visibility>

< description>

Place your mouse over the icon to see it display the new icon

</ description>

< LookAt>

< longitude>

-122.0856552124024

</ longitude>

< latitude>

37.4224281311035

</ latitude>

< altitude>

0

</ altitude>

< heading>

0

</ heading>

< tilt>

0

</ tilt>

< range>

265.8520424250024

</ range>

</ LookAt>

< Style id = "highlightPlacemark" >

< IconStyle>

< Icon>

< href>

http://maps.google.com/mapfiles/kml/paddle/red-stars.png

</ href>

</ Icon>

</ IconStyle>

</ Style>

< Style id = "normalPlacemark" >

< IconStyle>

< Icon>

< href>

http://maps.google.com/mapfiles/kml/paddle/wht-blank.png

</ href>

</ Icon>

</ IconStyle>

</ Style>

< StyleMap id = "exampleStyleMap" >

< Pair>

< key>

normal

</ key>

< styleUrl>

#normalPlacemark

</ styleUrl>

</ Pair>

< Pair>

< key>

highlight

</ key>

< styleUrl>

#highlightPlacemark

</ styleUrl>

</ Pair>

</ StyleMap>

< Placemark>

< name>

Roll over this icon