DrawToolExtension

(esrith/amos/map/DrawToolExtension)

Extended from esri/toolbars/draw.

Description
new DrawToolExtension(map)
Return type Description
activate(args) Esri/toolbars/draw

if has any tools are in active state will be deactivate first and then will be actived your draw tool.

deactivate() None deactive tool.
pause() None pause tool.
resume() None resume tool.
Constructors Detail
new DrawToolExtension(map)
Parameters:
  • <Map> map Required

    map object.

Methods Detail
<Esri/toolbars/draw>
activate
(
  • args
)

if has any tools are in active state will be deactivate first and then will be actived your draw tool.

Parameters
  • <Object | Object[]> args Required
    • <String> type Required

      geometryType

    • <Function> callback Required

      the function will be called when draw-end

    • <String> tooltip Optional

      if empty tooltip will be hidden

deactivate
()
deactive tool.
pause
()
pause tool.
resume
()
resume tool.