This is a lower-level API. Lower-level APIs are not recommended for most projects, and may not be available on all plans. See our page on recommended deployment patterns for more information.
Event Annotations API

drawing:changeTool

Notifies you when the drawing tool changes state. Returns the name of the drawing tool in use.

Examples

annotationsApp.on('drawing:changeTool', function () {
    console.log('The current drawing tool is: ' + annotationsApp.module('drawing').getDrawingTool());
});
Was this article helpful?