Hi Kai,

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.

You would add soething similar to the following in your mapfile:

PROJECTION
  "init=epsg:900913"
 END

Hope this helps.
Cheers,

Hugo

On Thu, Oct 13, 2011 at 4:15 PM, Kai Volland <kaivoll...@web.de> wrote:

> Hi Users,
>
> i have 3 diffrent Baselayers: 1. Google, 2. WMSa, 3. WMSb. The
> WMS-Baselayers come from mapserver and are cached by mapproxy.
>
> I know need to change the projection of the Baselayer 2 & 3 from
> EPSG:4326 to EPSG:900913, so that my WFS-Features don't have to be
> reprojected and the View don't has to be changed when switching the
> baselayer.
>
> GOOGLE LAYER:
>
> var mercator = new OpenLayers.Projection("EPSG:900913");
> var WGS84 = new OpenLayers.Projection("EPSG:4326");
>
> var gphy = new OpenLayers.Layer.Google(
>     "Google Physical",
>     {
>         type: google.maps.MapTypeId.TERRAIN
>     }
> );
>
> WMS LAYER:
> var mapquest1 = new OpenLayers.Layer.WMS(
>     "MapQuest Aerial",
>     "xxx.de/mapproxy/service",
>     {
>         projection: mercator,                            // DOESN'T WORK
>         layers: 'MapQuestAerial',
>         transparent: true,
>         format: 'image/png'
>     },
>     {
>         isBaseLayer: true,
>         hideInLegend: true
>     }
> );
>
> Kind regards
> Kai
> _______________________________________________
> Users mailing list
> Users@geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>



-- 
Hugo Martins
LabNT - ISEGI UNL
Campus de Campolide
1070-312 Lisboa
N 38°43'56.84", W 9°9'35.74"
_______________________________________________
Users mailing list
Users@geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to