<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Arial'; COLOR: #000000; FONT-SIZE: 10pt">
<DIV>Are your WMS baselayers configured either in Mapproxy or in Mapserver to be
available in mercator?</DIV>
<DIV>Also, if your mapserver wms service uses ‘EPSG:3857’ rather than
‘EPSG:900913’ as the web mercator projection code, then you should use that in
your application.</DIV>
<DIV style="FONT-FAMILY: 'Arial'; COLOR: #000000; FONT-SIZE: 10pt">Matt
Priour<BR>Kestrel Computer Consulting</DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=kaivolland@web.de
href="mailto:kaivolland@web.de">Kai Volland</A> </DIV>
<DIV><B>Sent:</B> Thursday, October 13, 2011 10:15 AM</DIV>
<DIV><B>To:</B> <A title=users@geoext.org
href="mailto:users@geoext.org">users@geoext.org</A> </DIV>
<DIV><B>Subject:</B> [Users] How to change projection of a
baselayer...</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">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>
"xxx.de/mapproxy/service",<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>Users@geoext.org<BR>http://www.geoext.org/cgi-bin/mailman/listinfo/users<BR></DIV></DIV></DIV></BODY></HTML>