Thanks for the help...<br>I tried use spherical marcator like that:<br><br> var bing= new OpenLayers.Layer.VirtualEarth("Shaded", {<br> type: VEMapStyle.Shaded, numZoomLevels: 10,sphericalMercator: true<br>
});<br><br>And use that projection in mapfile and openlayers:<br>PROJECTION <br> "+init=epsg:3857"<br><br>Openlayers<br> map = new OpenLayers.Map('Test', {<br>
resolutions: [0.09524345064126273, 0.0730199788249681,
0.047621725320631365, 0.031747816880420915, 0.015873908440210457,
0.009524345064126272, 0.0031747816880420914, 0.0015873908440210457,
0.0007936954220105228, 0.00031747816880420915], <br>
projection: "EPSG:4326", <br><div> maxExtent: new OpenLayers.Bounds(-102.2607421875, -46.142578125, 4.7021484375, 13.623046875) <br>
});<br><br><br>But using that, my wms layers "disappear"... To other projection maybe?<br><br>Any idea?<br><br>Thanks<br></div><br><br><div class="gmail_quote">On Wed, Aug 11, 2010 at 12:35 PM, Edward Mac Gillavry <span dir="ltr"><<a href="mailto:emacgillavry@hotmail.com">emacgillavry@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>
Bing maps is also using EPSG: 900913, EPSG:3785 or EPSG:3857 whichever is the latest... That should do the trick.<br><br>HTH<br><br>Edward<br><br><br><br><hr>Date: Wed, 11 Aug 2010 11:12:47 -0300<br>From: <a href="mailto:pauljame@gmail.com" target="_blank">pauljame@gmail.com</a><br>
To: <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>Subject: [mapserver-users] Openlayers + Bing Maps with Mapserver WMS projection error...<div><div></div><div class="h5">
<br><br>Hey guys...<br>When using Bing maps as base layer, I have huge difference between my data ... Both are using WGS84 projection...<br>The image is attached...<br><br>Any idea?<br><br>Thanks<br><br>My WMS map:<br>MAP<br>
...<br>
PROJECTION <br> "+init=epsg:4326"<br> END<br><br> WEB <br> IMAGEPATH 'D:\Temp'<br> IMAGEURL '/tmp/'<br> QUERYFORMAT 'text/html'<br><br> METADATA <br>
"wms_title" "WMS Server" ##required<br> "wms_onlineresource" "<a href="http://localhost/cgi-bin/mapserv.exe" target="_blank">http://localhost/cgi-bin/mapserv.exe</a>?" ##required<br>
"wms_srs" "EPSG:4269 EPSG:4326 EPSG:42304 EPSG:42101 EPSG:900913" ##recommended<br> "wms_feature_info_mime_type" "text/html" <br> "labelcache_map_edge_buffer" <div>
"-10"<br>
END<br> END<br>...<br><br>LAYER<br> NAME STATE<br> METADATA<br> "wms_title" "STATE" ##required<br> "wms_feature_info_mime_type" "text/html" <br>
END<br> <br> TYPE polygon<br> STATUS ON<br> INCLUDE "Connection.map" <br> DATA "..." <br> PROCESSING "CLOSE_CONNECTION=DEFER"<br>
PROCESSING "LABEL_NO_CLIP=ON"<br> <br> PROJECTION<br> "init=epsg:4326"<br> END<br>...<br><br><br>My Openlayers config:<br><br> map = new OpenLayers.Map('Test', {<br>
resolutions: [0.09524345064126273, 0.0730199788249681,
0.047621725320631365, 0.031747816880420915, 0.015873908440210457,
0.009524345064126272, 0.0031747816880420914, 0.0015873908440210457,
0.0007936954220105228, 0.00031747816880420915], <br>
projection: "EPSG:4326",<br> displayProjection: new OpenLayers.Projection("EPSG:4326"),<br> tileSize: new OpenLayers.Size(400, 400), <br> maxExtent: new OpenLayers.Bounds(-102.2607421875, -46.142578125, 4.7021484375, 13.623046875) <br>
});</div>
<br></div></div>_______________________________________________
mapserver-users mailing list
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a> </div>
</blockquote></div><br>