[Commits] r360 - apps/opengeo/geoexplorer/trunk/lib

commits at geoext.org commits at geoext.org
Wed Apr 8 00:19:11 CEST 2009


Author: tschaub
Date: 2009-04-08 00:19:11 +0200 (Wed, 08 Apr 2009)
New Revision: 360

Modified:
   apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
Log:
Using the cancel method on the measure control to erase persisted sketch.

Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js	2009-04-07 22:10:47 UTC (rev 359)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js	2009-04-07 22:19:11 UTC (rev 360)
@@ -375,7 +375,7 @@
             feature = new OpenLayers.Feature.Vector(data.geometry, {}, {});
             
             measureToolTip.on("hide", function() {
-                data.clearDisplay();
+                measureControl.cancel();
                 cleanup();
             }, this);
         });



More information about the Commits mailing list