[fusion-commits] r1552 - trunk/MapGuide

svn_fusion at osgeo.org svn_fusion at osgeo.org
Fri Sep 26 12:58:36 EDT 2008


Author: pagameba
Date: 2008-09-26 12:58:36 -0400 (Fri, 26 Sep 2008)
New Revision: 1552

Modified:
   trunk/MapGuide/MapGuide.js
Log:
this.map is not always defined so use a reference to oMapOL instead.

Modified: trunk/MapGuide/MapGuide.js
===================================================================
--- trunk/MapGuide/MapGuide.js	2008-09-26 14:15:57 UTC (rev 1551)
+++ trunk/MapGuide/MapGuide.js	2008-09-26 16:58:36 UTC (rev 1552)
@@ -553,7 +553,7 @@
         layerOptions.minScale = this.maxScale;    //OL interpretation of min/max scale is reversed from Fusion
       }
       //only set both max and min scale when not using scales array
-      if (!this.map.scales && !this.scales) {
+      if (!this.mapWidget.oMapOL.scales && !this.scales) {
         layerOptions.maxScale = this.minScale;  
       }
 
@@ -1190,7 +1190,7 @@
         this.minScale = o.minScale;
         this.maxScale = o.maxScale;
         if (this.maxScale == 'infinity') {
-          this.maxScale = Infinity;
+          this.maxScale = 100000000;
         }
         this.scaleRanges = [];
 



More information about the fusion-commits mailing list