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-end 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.
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.
Esri's JavaScript API 3.8 have caused numerous problems with markup and measurement, resulting in the need for numerous hacks and workarounds in the measurement, markup and printing modules, and possibly others as well. This is a central placeholder for all hacks and workarounds needed by the WCAG accessible tools.
See GVH-3523, GVH-3535, GVH-3516, GVH-4973
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 the user has ended drawing.
Fired when drawing is complete.
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)
Fired when drawing is complete.
Geometry drawn on the client.
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.