[OpenLayers-Users] OpenLayers.Layer.Vector reading KML file
from disk instead of HTTP served
woodbri at swoodbridge.com
Mon Mar 8 16:52:41 EST 2010
> Hi everyone.
> I'm working on the code from the example at
> 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 !
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.
More information about the Users