[fusion-commits] r2496 - sandbox/adsk/2.4j/lib

svn_fusion at osgeo.org svn_fusion at osgeo.org
Thu Dec 22 22:12:55 EST 2011


Author: liuar
Date: 2011-12-22 19:12:55 -0800 (Thu, 22 Dec 2011)
New Revision: 2496

Modified:
   sandbox/adsk/2.4j/lib/Map.js
Log:
port to adsk 2.4j branch
Fix a potential defect while the lower left coordinate of map's extent is (0,0).

Modified: sandbox/adsk/2.4j/lib/Map.js
===================================================================
--- sandbox/adsk/2.4j/lib/Map.js	2011-12-23 03:11:53 UTC (rev 2495)
+++ sandbox/adsk/2.4j/lib/Map.js	2011-12-23 03:12:55 UTC (rev 2496)
@@ -895,9 +895,9 @@
         initialExtents = new OpenLayers.Bounds.fromArray(bbox.split(","));
       } else if (this.mapGroup.initialView) {
           var iv = this.mapGroup.getInitialView();
-          if (iv.x) {
+          if (iv.x != undefined) {
               initialExtents = this.getExtentFromPoint(iv.x, iv.y, iv.scale);
-          } else if (iv.minX) {
+          } else if (iv.minX != undefined) {
               initialExtents = new OpenLayers.Bounds(iv.minX, iv.minY, iv.maxX, iv.maxY);
           }
           var mapProj = this.oMapOL.baseLayer.projection;



More information about the fusion-commits mailing list