[fusion-commits] r1374 - sandbox/olcore/lib

svn_fusion at osgeo.org svn_fusion at osgeo.org
Wed Apr 16 10:07:49 EDT 2008


Author: madair
Date: 2008-04-16 10:07:49 -0400 (Wed, 16 Apr 2008)
New Revision: 1374

Modified:
   sandbox/olcore/lib/Map.js
Log:
add fractional zoom as MapWidget extension; defaults to true

Modified: sandbox/olcore/lib/Map.js
===================================================================
--- sandbox/olcore/lib/Map.js	2008-04-15 15:24:27 UTC (rev 1373)
+++ sandbox/olcore/lib/Map.js	2008-04-16 14:07:49 UTC (rev 1374)
@@ -67,6 +67,7 @@
     aMaps: null,
     layerRoot: null,
     singleTile: true,
+    bFractionalZoom: true,  //TODO: set this in AppDef?
     
     /**
      * construct a new view Fusion.Widget.Map class.  
@@ -85,9 +86,17 @@
             this._oDomObj.jxLayout.addSizeChangeListener(this);
         }
         
+        if (widgetTag.extension.FractionalZoom) {
+          this.fractionalZoom = widgetTag.extension.FractionalZoom[0]=='false'?false:true;
+        }
+        
         OpenLayers.DOTS_PER_INCH = this._nDpi;
         if (!this.oMapOL) {
-            var options = {controls: [], fallThrough: true};
+            var options = {
+                controls: [], 
+                fallThrough: true,
+                fractionalZoom: this.fractionalZoom
+            };
             if (widgetTag.extension.ConstrainMapExtent) {
               this.bRestrictExtent = widgetTag.extension.ConstrainMapExtent[0]=='true'?true:false;
             }



More information about the fusion-commits mailing list