[OpenLayers-Users] Fwd: Path problem with kml files
andres.deparis at gmail.com
Wed Mar 16 13:33:02 EDT 2011
I am trying to load some kml file into openlayer however, if I put my htm
page in the browser this way: http://localhost/mypage.htm it does not find
the kml file which is loaded in the root of the site.
Now, if I load the page in the browser this way: file:///C:/inetpub/wwwroot/
, then openlayers can open it very fast and no problem.
Can someone please help me to solve this problem? Below is my piece of code.
Thank you all!
map.addLayer(new OpenLayers.Layer.GML("KML", "myTest.kml",
projection: new OpenLayers.Projection("EPSG:
displayProjection: new OpenLayers.Projection("EPSG:900913"),
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users