The activate state of the Esri drawing surface. The Esri drawing surface does not provide an indication of whether it is active or not. We'll keep track of this state ourselves so that we don't call deactivate unnecessarily.
The Esri drawing surface.
The {@link geocortex.essentialsHtmlViewer.ViewerApplication} that this tool instance belongs to.
Optional title for the close tool UI element. Defaults to "Deactivate Tool".
The command name associated with this tool.
The draw mode of this tool.
Optional URI of the icon to display with the status.
Whether this tool is active.
Whether this tool is sticky.
Optional, alternate status text to display for keyboard users. Can be i18ned.
Library to look up i18n string keys from. Required to display i18n strings.
The name of this tool.
Optional CSS class for the status displayed for this tool.
Status text to display while the tool is active. Can be i18ned.
Called when the tool is activated.
Called when the tool is deactivated.
Called when drawing completes. Now handling 'onDrawComplete' instead of deprecated 'onDrawEnd', though still checking for both payloads
Called when the input method (e.g. keyboard, mouse) for the drawing component has changed.
Sets the active state of the tool.
The desired active state of the tool.
An extension of MapTool that implements ToolBase's
enabled: Observable<boolean>
by calling the command's canExecute with no arguments. This is playing fast and loose with what 'canExecute' means because of course the command can't actually execute without the geometry input. However we don't have that geometry until after the tool executes so it's a chicken and egg problem. This functionality is not in MapTool because not all Commands do (should?) follow this convention.