[fusion-commits] r2157 - sandbox/jxlib-3.0/lib

svn_fusion at osgeo.org svn_fusion at osgeo.org
Fri May 14 11:47:14 EDT 2010


Author: madair
Date: 2010-05-14 11:47:13 -0400 (Fri, 14 May 2010)
New Revision: 2157

Modified:
   sandbox/jxlib-3.0/lib/Map.js
Log:
fixes error in initialView map projection

Modified: sandbox/jxlib-3.0/lib/Map.js
===================================================================
--- sandbox/jxlib-3.0/lib/Map.js	2010-05-04 19:35:23 UTC (rev 2156)
+++ sandbox/jxlib-3.0/lib/Map.js	2010-05-14 15:47:13 UTC (rev 2157)
@@ -942,14 +942,14 @@
           } else if (iv.minX) {
               initialExtents = new OpenLayers.Bounds(iv.minX, iv.minY, iv.maxX, iv.maxY);
           }
+          var mapProj = this.oMapOL.baseLayer.projection;
+          if (iv.projection && !iv.projection.equals(mapProj)) {
+            initialExtents.transform(iv.projection, mapProj);
+          }
           if (!initialExtents.intersectsBounds(this.maxExtent)) {
             Fusion.reportError("AppDef initial view is outside map maxExtent, resetting initialView to maxExtent");
             initialExtents = this.maxExtent;
           }
-          var mapProj = this.oMapOL.baseLayer.projection;
-          if (iv.projection && !iv.projection.equals(mapProj)) {
-            initialExtents.transform(iv.projection, mapProj);
-          }
       } else {
         initialExtents = this.getMapGroupExtent();
         if (!initialExtents) {



More information about the fusion-commits mailing list