[fusion-commits] r1389 - in trunk: MapGuide MapServer lib
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Tue May 6 13:13:10 EDT 2008
Author: madair
Date: 2008-05-06 13:13:10 -0400 (Tue, 06 May 2008)
New Revision: 1389
Modified:
trunk/MapGuide/MapGuide.js
trunk/MapServer/MapServer.js
trunk/lib/Map.js
Log:
closes #8: move scale rounding to the Legend ScaleRange object
Modified: trunk/MapGuide/MapGuide.js
===================================================================
--- trunk/MapGuide/MapGuide.js 2008-05-06 14:46:04 UTC (rev 1388)
+++ trunk/MapGuide/MapGuide.js 2008-05-06 17:13:10 UTC (rev 1389)
@@ -1168,7 +1168,8 @@
}
},
contains: function(fScale) {
- return fScale >= this.minScale && fScale <= this.maxScale;
+ var testScale = Math.round(fScale);
+ return testScale >= this.minScale && testScale <= this.maxScale;
}
});
Modified: trunk/MapServer/MapServer.js
===================================================================
--- trunk/MapServer/MapServer.js 2008-05-06 14:46:04 UTC (rev 1388)
+++ trunk/MapServer/MapServer.js 2008-05-06 17:13:10 UTC (rev 1389)
@@ -920,7 +920,8 @@
}
},
contains: function(fScale) {
- return fScale >= this.minScale && fScale <= this.maxScale;
+ var testScale = Math.round(fScale);
+ return testScale >= this.minScale && testScale <= this.maxScale;
}
});
Modified: trunk/lib/Map.js
===================================================================
--- trunk/lib/Map.js 2008-05-06 14:46:04 UTC (rev 1388)
+++ trunk/lib/Map.js 2008-05-06 17:13:10 UTC (rev 1389)
@@ -732,7 +732,7 @@
},
getScale : function() {
- return Math.round(this.oMapOL.getScale());
+ return this.oMapOL.getScale();
},
getResolution : function() {
More information about the fusion-commits
mailing list