[OpenLayers-Users] OpenLayers.Layer.Vector reading KML file
from disk instead of HTTP served
Stephen Woodbridge
woodbri at swoodbridge.com
Mon Mar 8 16:52:41 EST 2010
Ju wrote:
> Hi everyone.
>
> I'm working on the code from the example at
> http://openlayers.org/dev/examples/sundials-spherical-mercator.html
>
> I'd really like the OpenLayers.Layer.Vector to read the KML file directly
> from the disk, not via HTTP, because both the file and the page reside on my
> own PC.
>
> Anyone could please tell me if there's a simple way to follow ?
>
> I'm really not into JS :)
>
> Thanks in advance to the users and the developers for this great project !
>
> Ju
Have you tried setting the url to file:///path/to/file.kml
I haven't tried this myself but I'd give it a try.
-Steve
More information about the Users
mailing list