Creates a new Draw object.
Map the toolbar is associated with.
Parameters that define the functionality of the draw toolbar.
Templates for pre-defined shapes that can be drawn with this tool
The map instance.
The {@link geocortex.essentialsHtmlViewer.ViewerApplication} that this Draw toolbar instance belongs to.
Symbol to be used when drawing a Polygon or Extent.
The mode the component is running - e.g. mouse, keyboard
Symbol to be used when drawing a Polyline.
Symbol to be used when drawing a Point or Multipoint.
When set to false, the geometry is modified to be topologically correct.
Marker symbol used to draw the currently selected vertex while in keyboard mode. Valid for polyline and polygon geometries.
Marker symbol used to draw the vertices while in keyboard mode. Valid for polyline and polygon geometries.
Draws an arrow.
Draws a circle.
Draws an arrow that points down.
Draws an ellipse.
Draws an extent box.
Draws a freehand polygon.
Draws a freehand polyline.
Draws an arrow that points left.
Draws a line.
Draws a Multipoint.
Draws a point.
Draws a polygon.
Draws a polyline.
Draws a rectangle.
Draws an arrow that points right.
Draws a triangle.
Draws an arrow that points up.
Fires the draw complete event.
Starts digitizing polygons, polylines or multi-points via the keyboard. Returns a promise that is fulfilled once the user completes the drawing.
Handles keyboard input for plotting polygons, polylines and multipoints.
GVH measurement tools rely on private/unsupported methods of the Esri Draw object. This is one of them.
Raises the draw-end event after editing is completed.
Provides keyboard handling for the Draw component.
Internal method that subclasses should override to provide keyboard handling.
Handles map clicks (or taps) occuring while the draw tool is active. The purpose of this handler is to sanity check input in the face of very different firing patterns on different devices and also to inform other consumers about the (sanitized) progress of the draw session.
Handles map double clicks (or taps) occuring while the draw tool is active. The purpose of this handler is to sanity check input in the face of very different firing patterns on different devices and also to inform other consumers about the (sanitized) progress of the draw session.
Plots a shape on the map. It will produce either a default shape (e.g. circle) or a shape digitized via the keyboard (e.g. polygon)
Whether keyboard input is supported for the specified geometry type. Keyboard input is not supported for freehand drawing.
Activates the toolbar for drawing geometries.
The type of geometry drawn.
Options that define the functionality of the draw toolbar.
Deactivates the toolbar and reactivates map navigation.
Finishes drawing the geometry and fires the onDrawEnd event.
Fired when drawing is complete.
Fired when drawing is complete. DEPRECATED
Fired when the drawing tools are activated.
Fired when the drawing tools are deactivated.
Fired when the user has ended drawing.
The event object has the following properties: geometry, geographicGeometry.
geometry
represents the shape that was drawn. Coordinates of this geometry have the same spatial reference of the map.
geographicGeometry
represents the drawn shape in geographic coordinates (latitude, longitude). Only available when the map's
spatial reference is Web Mercator or Geographic (4326)
DEPRECATED: but may still have listeners
Fired when the input method for this component (e.g. keyboard, mouse) has changed.
Internal method that subclasses should override to provide keyboard handling.
Internal method that subclasses should override to provide keyboard handling.
Whether the operation was cancelled.
Sets the fill symbol.
The fill symbol.
Sets the current input method for this component (for example, mouse or keyboard).
The input method. See {@link geocortex.essentialsHtmlViewer.mapping.infrastructure.accessibility.InputMethod} for valid values.
Sets the line symbol.
The line symbol.
Sets the marker symbol.
The marker symbol.
Sets whether the polygon geometry should be modified to be topologically correct.
When set to false, the geometry is modified to be topologically correct.
Sets the vertex highlight marker symbol.
The marker symbol.
Sets the vertex marker symbol.
The marker symbol.
Toolbar that supports functionality to create new geometries by drawing them: points (POINT or MULTI_POINT), lines (LINE, POLYLINE, or FREEHAND_POLYLINE), polygons (FREEHAND_POLYGON or POLYGON), or rectangles (EXTENT). To edit geometries of existing graphics, use the Edit Toolbar.