[fusion-commits] r2495 - trunk/lib
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu Dec 22 22:11:53 EST 2011
Author: liuar
Date: 2011-12-22 19:11:53 -0800 (Thu, 22 Dec 2011)
New Revision: 2495
Modified:
trunk/lib/Map.js
Log:
Fix a potential defect while the lower left coordinate of map's extent is (0,0).
Modified: trunk/lib/Map.js
===================================================================
--- trunk/lib/Map.js 2011-12-21 02:52:44 UTC (rev 2494)
+++ trunk/lib/Map.js 2011-12-23 03:11:53 UTC (rev 2495)
@@ -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