[fusion-commits] r1423 - trunk/MapServer

svn_fusion at osgeo.org svn_fusion at osgeo.org
Wed Jun 25 14:42:21 EDT 2008


Author: pagameba
Date: 2008-06-25 14:42:21 -0400 (Wed, 25 Jun 2008)
New Revision: 1423

Modified:
   trunk/MapServer/MapServer.js
Log:
set openlayers map units to be baselayer units so that stupid controls such as the ScalebarDual will use the right units.

Modified: trunk/MapServer/MapServer.js
===================================================================
--- trunk/MapServer/MapServer.js	2008-06-25 18:41:23 UTC (rev 1422)
+++ trunk/MapServer/MapServer.js	2008-06-25 18:42:21 UTC (rev 1423)
@@ -289,6 +289,7 @@
             if (this.bIsMapWidgetLayer) {
               this.mapWidget.addMap(this);
               this.mapWidget.oMapOL.setBaseLayer(this.oLayerOL);
+              this.mapWidget.oMapOL.units = this.oLayerOL.units;
               this.mapWidget._oInitialExtents = null;
               this.mapWidget.fullExtents();
               this.mapWidget.triggerEvent(Fusion.Event.MAP_LOADED);



More information about the fusion-commits mailing list