[fusion-commits] r1717 - branches/fusion2-mg21/layers/MapGuide

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


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

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

Modified: branches/fusion2-mg21/layers/MapGuide/MapGuide.js
===================================================================
--- branches/fusion2-mg21/layers/MapGuide/MapGuide.js	2008-12-16 21:13:17 UTC (rev 1716)
+++ branches/fusion2-mg21/layers/MapGuide/MapGuide.js	2008-12-16 21:13:51 UTC (rev 1717)
@@ -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