Hello,

I am trying to show KML layers on mobile devices with OpenLayers and I have
tried this example: http://openlayers.org/dev/examples/mobile-layers.html. 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:

    var kml = new OpenLayers.Layer.Vector("KML", {
        projection: map.displayProjection,
        strategies: [new OpenLayers.Strategy.Fixed()],
        protocol: new OpenLayers.Protocol.HTTP({
            url: "http://openlayers.org/dev/examples/kml/sundials.kml";,
            format: new OpenLayers.Format.KML({
                extractStyles: true,
                extractAttributes: true
            })
        }),
        renderers: renderer
    });

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:
http://www.gearscape.org/tmp/ol.html
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to