Hello,<br>I'm using OpenLayers to display a kml file representing some line segments. Each segment is colored differently, according to the speed mesured on that segment. So i have a php script wich generates the kml and the following openLayers code:<br>
<br>var speeds = new OpenLayers.Layer.Vector("Avg speed", {<br> projection: new OpenLayers.Projection("EPSG:4326"),<br> strategies: [<br> new OpenLayers.Strategy.BBOX()<br>
//new OpenLayers.Strategy.Cluster()<br> ],<br> protocol: new OpenLayers.Protocol.HTTP({<br> url: "getKml.php",<br> format: new OpenLayers.Format.KML({<br>
extractStyles: false, <br> extractAttributes: false<br> }),<br> params: {zoom:this.map.getZoom()}<br> })<br>
});<br>Here you have a dump of the kmlFile: <a href="http://wikitrafic.iovanalex.ro/site/getKml2.kml">http://wikitrafic.iovanalex.ro/site/getKml2.kml</a><br><br>My problem is that I cannot see any diference in style, even the kml file contains segements with diferent styles, as you can see.<br>
Also if a open it on Google Maps, the same thing happens: all the lines are Google-yellow.<br><br>So my question is: what is wrong with my KML file. I'm I missing something from the definition of the file ? I have checked it with an online validator and it seems ok.<br>
<br>Thank you,<br><br>Alexandru IOVANOVICI.<br>