<br>Hello all,<br>I am trying to load some kml file into openlayer however, if I put my htm page in the browser this way: <a href="http://localhost/mypage.htm" target="_blank">http://localhost/mypage.htm</a> it does not find the kml file which is loaded in the root of the site.<br>
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.<br><br>Can someone please help me to solve this problem? Below is my piece of code.<br><br>
Thank you all!<br><br>map.addLayer(new OpenLayers.Layer.GML("KML", "myTest.kml", <br> {<br> projection: new OpenLayers.Projection("EPSG:<div id=":j4">4326"),<br>
displayProjection: new OpenLayers.Projection("EPSG:900913"), <br>
<br> format: OpenLayers.Format.KML, <br> formatOptions: {<br> extractStyles: true, <br> extractAttributes: true,<br> maxDepth: 2<br> }<br>
}));<br><font color="#888888"><br>Andres</font></div><br>