I created a simple webgis with navigation toolbar and measurement widget. The measurement widget works correctly but I couldn't disable the widget . I found the clearresult method but it just clear the result of the measures on map and the onclick method still works with the measurement tools. I want to disable the widget when the user clicks the clear measurement button . How can i set onclick to disable the widget?
var measurement = new esri.dijit.Measurement({map:map},"measure"); measurement.startup(); dijit.registry.byId("clear").on("click",function() { measurement.clearResult(); registry.byId("pan").on("click", function () { }); } );
أكثر...

var measurement = new esri.dijit.Measurement({map:map},"measure"); measurement.startup(); dijit.registry.byId("clear").on("click",function() { measurement.clearResult(); registry.byId("pan").on("click", function () { }); } );
أكثر...