Hello,
Still for the same situation, all drawn features should be reprojected into the new base layer projection. I don't have any patch to suggest. Regards, Christophe NOEL. From: [email protected] [mailto:[email protected]] On Behalf Of Christophe Noel Sent: jeudi 2 décembre 2010 16:11 To: [email protected] Subject: [OpenLayers-Dev] Multiple base layer projections case 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. ______________________________________________________________________ This email has been scanned by IT101 powered by MessageLabs Email Security System. For more information please visit http://www.it101.be ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by IT101 powered by MessageLabs Email Security System. For more information please visit http://www.it101.be ______________________________________________________________________
<<image001.png>>
_______________________________________________ Dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-dev
