Hello all,
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:
4326"),
displayProjection: new OpenLayers.Projection("EPSG:900913"),
format: OpenLayers.Format.KML,
formatOptions: {
extractStyles: true,
extractAttributes: true,
maxDepth: 2
}
}));
Andres
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110317/c6e76aac/attachment.html