Hi Kai,<div><br></div><div>I think you have to define the spherical mercator projection of your baselayers in their correspondent mapfile because WMS cannot be reprojected on the client side.</div><div><br></div><div>You would add soething similar to the following in your mapfile:</div>
<div><br></div><div><div>PROJECTION</div><div> "init=epsg:900913"</div><div> END</div><div><br></div><div>Hope this helps.</div><div>Cheers,</div><div><br></div><div>Hugo</div><br><div class="gmail_quote">On Thu, Oct 13, 2011 at 4:15 PM, Kai Volland <span dir="ltr"><<a href="mailto:kaivolland@web.de">kaivolland@web.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Users,<br>
<br>
i have 3 diffrent Baselayers: 1. Google, 2. WMSa, 3. WMSb. The<br>
WMS-Baselayers come from mapserver and are cached by mapproxy.<br>
<br>
I know need to change the projection of the Baselayer 2 & 3 from<br>
EPSG:4326 to EPSG:900913, so that my WFS-Features don't have to be<br>
reprojected and the View don't has to be changed when switching the<br>
baselayer.<br>
<br>
GOOGLE LAYER:<br>
<br>
var mercator = new OpenLayers.Projection("EPSG:900913");<br>
var WGS84 = new OpenLayers.Projection("EPSG:4326");<br>
<br>
var gphy = new OpenLayers.Layer.Google(<br>
"Google Physical",<br>
{<br>
type: google.maps.MapTypeId.TERRAIN<br>
}<br>
);<br>
<br>
WMS LAYER:<br>
var mapquest1 = new OpenLayers.Layer.WMS(<br>
"MapQuest Aerial",<br>
"<a href="http://xxx.de/mapproxy/service" target="_blank">xxx.de/mapproxy/service</a>",<br>
{<br>
projection: mercator, // DOESN'T WORK<br>
layers: 'MapQuestAerial',<br>
transparent: true,<br>
format: 'image/png'<br>
},<br>
{<br>
isBaseLayer: true,<br>
hideInLegend: true<br>
}<br>
);<br>
<br>
Kind regards<br>
Kai<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@geoext.org">Users@geoext.org</a><br>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Hugo Martins<br>LabNT - ISEGI UNL<br>Campus de Campolide<br>1070-312 Lisboa<br>N 38°43'56.84", W 9°9'35.74"<br>
</div>