This is kind of an older post but I was running into similar issues and wanted to share my workaround... The documentation still says that this will work but I was still getting error messages measurement.on("measure-end", function(evt){ this.setTool(evt.activeTool, false); }); I changed my code to evt.toolName and was able to get around the error message coming up: measureW.on("measure-end", function(evt) { measureW.setTool(evt.toolName, false); }); If you need to be more specific you can modify the code to something like if(evt.toolName == "location") Hope this saves someone a little debugging time out there.
... View more