Hi, it's again me :)<br><br>When I want to hide/show a feature, I just do in a normal case: feature.style.display = "none";<br>This is working great.<br><br>But in the following case it's not working, and I don't have what to do.<br>
<br>- I have a KML with placemark (Point and Polygon)<br>- Each Placemark have attributes like (fontColor,label,labeloffestY)<br>- I used a StyleMap to style the features of this KML<br>like that:<br>var extraMap = new OpenLayers.StyleMap({'default':{<br>
fillOpacity: 1,<br> pointRadius: "${pointSize}",<br> label : "${label}",<br> fontColor: "${fontColor}",<br> fontSize: "${labelSize}px",<br>
....<br><br>GMLlayer = new OpenLayers.Layer.GML(json.files[i].name, json.files[i].kml, <br> {<br> format: OpenLayers.Format.KML, <br>
formatOptions: {<br> extractStyles: true, <br> extractAttributes: true,<br>
maxDepth: 2<br> },<br> styleMap: style<br> });<br>
<br>Then when I tried to do feature.style.display but feature.style is not defined.<br><br>What can I do :-( ?<br>