Hello,
Relatively to ticket : http://trac.osgeo.org/openlayers/ticket/1249 I had the following problem : - Default base layer is an EPSG:31370 (Belgian projection) WMS layer (initially centered on Belgium) - Second base layer is an ESPG:4326 WMS layer Changing the map to the second base layer doesn't reproject the center coordinates (180000, 121000 in EPSG:31370) , and Openlayers leaves the work with these incomprehensible EPSG:4326 coordinates (nothing is displayed). I wonder why this old ticket (2007) is not yet patched in OpenLayers, but the following OL v2.10 patch works fine, if anybody is interested in : In Map.js LINE 1126: oldProjection = this.getProjectionObject(); LINE 1144 : this.setCenter(center.transform(oldProjection,this.getProjectionObject() ), newZoom, false, true); Why would I put various base layers projection ? I.e because all customers want to see integration of Google maps in OL for example J P Please consider the environment before printing this email.
<<image001.png>>
_______________________________________________ Dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-dev
