Hello all. I am having an issue getting a Layer to show labels on the map along with having it extract styles from a KML file. It shows labels when I set extractStyles to false, but does not when I set it to true. Is there a way to show the labels when extractStyles is set to true? Can I enable the labels after the KML file is loaded? Would this entail something like modifying the style after the fact? <br>
<br>Example snippit: <br><br>var kmlStyleMap = new OpenLayers.StyleMap({&#39;default&#39;:{<br>                        label : &quot;${name}&quot;,<br>                        fontColor: &quot;#000000&quot;,<br>                        fontSize: &quot;11px&quot;,<br>
                        labelAlign: &quot;center&quot;,<br>                        pointRadius: 2,<br>                        labelXOffset : 0,<br>                        labelYOffset : 0,<br>                        labelSelect: true<br>
                    }});<br><br>var kmlFormat = new OpenLayers.Format.KML({<br>                    internalProjection: sphericalMercatorProj,<br>                    externalProjection: mapProj,<br>                    extractStyles: true,<br>
                    extractAttributes: true,<br>                    maxDepth: 2<br>        });<br><br>var ellipseKMLLayer = new OpenLayers.Layer.Vector(&quot;KML&quot;,<br>            {<br>                projection: latLonProj,<br>
                strategies: [new OpenLayers.Strategy.Fixed()],<br>                protocol: new OpenLayers.Protocol.HTTP({<br>                    url: kmlHref,<br>                    format: kmlFormat<br>                }),<br>
                styleMap: kmlStyleMap,<br>                eventListeners: { &#39;loadend&#39;: kmlLoaded },<br>                renderers: renderer<br>            });<br><br><br>Sample KML file:<br><br>&lt;?xml version=&quot;1.0&quot;?&gt;<br>
&lt;kml xmlns:gx=&quot;<a href="http://www.google.com/kml/ext/2.2">http://www.google.com/kml/ext/2.2</a>&quot; xmlns:atom=&quot;<a href="http://www.w3.org/2005/Atom">http://www.w3.org/2005/Atom</a>&quot; xmlns=&quot;<a href="http://www.opengis.net/kml/2.2">http://www.opengis.net/kml/2.2</a>&quot;&gt;<br>
  &lt;Document&gt;<br>    &lt;name&gt;Geolocation Case: 17564&lt;/name&gt;<br>    &lt;open&gt;1&lt;/open&gt;<br>    &lt;visibility&gt;1&lt;/visibility&gt;<br>    &lt;Style id=&quot;style1&quot;&gt;<br>      &lt;LineStyle&gt;<br>
        &lt;width&gt;2&lt;/width&gt;<br>        &lt;color&gt;bf970952&lt;/color&gt;<br>      &lt;/LineStyle&gt;<br>      &lt;PolyStyle&gt;<br>        &lt;color&gt;4abf0c74&lt;/color&gt;<br>        &lt;colorMode&gt;random&lt;/colorMode&gt;<br>
      &lt;/PolyStyle&gt;<br>      &lt;LabelStyle&gt;<br>        &lt;color&gt;ffffffff&lt;/color&gt;<br>        &lt;colorMode&gt;normal&lt;/colorMode&gt;<br>        &lt;scale&gt;1.2&lt;/scale&gt;<br>      &lt;/LabelStyle&gt;<br>
      &lt;IconStyle&gt;<br>        &lt;Icon&gt;<br>          &lt;href&gt;<a href="http://127.0.0.1:8000/static/images/pointicon.png">http://127.0.0.1:8000/static/images/pointicon.png</a>&lt;/href&gt;<br>        &lt;/Icon&gt;<br>
      &lt;/IconStyle&gt;<br>    &lt;/Style&gt;<br>    &lt;Placemark&gt;<br>      &lt;name&gt;My Point&lt;/name&gt;      <br>      &lt;Point&gt;<br>        &lt;coordinates&gt;-81.522832781,-3.33918759741,0.0&lt;/coordinates&gt;<br>
      &lt;/Point&gt;<br>      &lt;LookAt&gt;<br>        &lt;longitude&gt;-81.522832781&lt;/longitude&gt;<br>        &lt;latitude&gt;-3.33918759741&lt;/latitude&gt;<br>      &lt;/LookAt&gt;<br>      &lt;styleUrl&gt;#style1&lt;/styleUrl&gt;<br>
    &lt;/Placemark&gt;<br>    ... more Placemarks ...<br><br><br>-Chris<br>