AnsweredAssumed Answered

KMLLayer Style support

Question asked by xcer on Jul 10, 2013
Latest reply on Sep 16, 2015 by emlevy
I am displaying points from a KML file on my Javascript API map using esri.layers.KMLLayer().  The Placemarks in my KML file have a styleUrl defined as:
   <Style id="myStyle">       <LabelStyle>          <color>FFCCFFCC</color>       </LabelStyle>       <IconStyle>          <color>FF3F3FFF</color>          <Icon><href>http://mydomain.com/marker.png</href></Icon>       </IconStyle>    </Style>

The map is displaying my points using the marker.png as defined in this style, but I have two issues:

  1. Labels are not displayed.  I would like to display the Placemark's name as a label (ie always visible).

  2. The markers are the default color of the image (white).  I would like to marker to use the <color> in the <IconStyle>.

Is possible to do either of these?  Thanks!

Outcomes