[fusion-commits] r1716 - trunk/layers/MapGuide

svn_fusion at osgeo.org svn_fusion at osgeo.org
Tue Dec 16 16:13:17 EST 2008


Author: chrisclaydon
Date: 2008-12-16 16:13:17 -0500 (Tue, 16 Dec 2008)
New Revision: 1716

Modified:
   trunk/layers/MapGuide/MapGuide.js
Log:
Fix #194 - Call getExtents on the map widget to zoom to the extents of the selection

Modified: trunk/layers/MapGuide/MapGuide.js
===================================================================
--- trunk/layers/MapGuide/MapGuide.js	2008-12-15 13:41:46 UTC (rev 1715)
+++ trunk/layers/MapGuide/MapGuide.js	2008-12-16 21:13:17 UTC (rev 1716)
@@ -624,7 +624,7 @@
           userFunc(oSelection);
       }
     },
-    
+
     /**
      * advertise a new selection is available and redraw the map
      */
@@ -812,7 +812,7 @@
               if (zoomTo) {
                 var ext = oNode.extents;
                 var extents = new OpenLayers.Bounds(ext.minx, ext.miny, ext.maxx, ext.maxy);
-                this.zoomToSelection(extents);
+                this.mapWidget.setExtents(extents);
               }
               this.newSelection();
             } else {



More information about the fusion-commits mailing list