<span class="gmail_quote"></span>Hello everyone,<br><br>I have tryid open layers against a server that used Mercator projection and I get tiles that don't match with each other and parts of the land that are repeated.<br><br>
Here is the code I am using:<br>
<br><html><br><html><br> <head><br> <title>Open Layers Demo Tiled</title><br> <script type="text/javascript" src="lib/OpenLayers.js"></script>
<br> </head><br> <body><br> <h1>Open Layers Demo Tiled</h1><br> <div style="width:50%; height:50%" id="map"></div><br> <script defer="defer" type="text/javascript">
<br> <br> var options = {'projection': 'EPSG:41001'};<br> var map = new OpenLayers.Map('map', options); <br> var wms = new OpenLayers.Layer.WMS(<br> "WMS", "
<a href="http://localhost:8080/basicmap/wms" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://localhost:8080/basicmap/wms</a>",<br> {layers: 'ROADS',<br> REQUEST: "map"});
<br> <br>
map.addLayer(wms);<br> map.zoomToMaxExtent();<br> map.addControl(new OpenLayers.Control.LayerSwitcher()); <br> map.setCenter(new OpenLayers.LonLat(4,52), 7);<br> </script>
<br>
</body><br></html><br><br>So I think this is because OpenLayers uses EPSG:4326
and I haven't find a way to overcome this problem. Does someone know how to fix this?<br><span class="sg">Ana<br><br>
</span>