Hello,<br><br>I am trying to show KML layers on mobile devices with OpenLayers and I have tried this example: <a href="http://openlayers.org/dev/examples/mobile-layers.html" target="_blank">http://openlayers.org/dev/examples/mobile-layers.html</a>. I managed to show the KML layer correctly, but if I specify the full URL for the .kml file, changing the creation of the KML layer to this:<br>
<br> var kml = new OpenLayers.Layer.Vector("KML", {<br> projection: map.displayProjection,<br> strategies: [new OpenLayers.Strategy.Fixed()],<br> protocol: new OpenLayers.Protocol.HTTP({<br>
url: "<a href="http://openlayers.org/dev/examples/kml/sundials.kml">http://openlayers.org/dev/examples/kml/sundials.kml</a>",<br> format: new OpenLayers.Format.KML({<br> extractStyles: true,<br>
extractAttributes: true<br> })<br> }),<br> renderers: renderer<br> });<br><br>then the layer is not shown. I couldn't manage to find more info about this or a clue of what is happening here. You can find the code I'm using here: <a href="http://www.gearscape.org/tmp/ol.html">http://www.gearscape.org/tmp/ol.html</a><br>