Description
Toolbar that supports functionality to draw geometries.
Class hierarchy
esri.toolbars.Draw
Constructor
Properties
Constants
| EXTENT |
Draws an extent box. |
| FREEHAND_POLYGON |
Draws a freehand polygon. |
| FREEHAND_POLYLINE |
Draws a freehand polyline. |
| LINE |
Draws a line. |
| MULTI_POINT |
Draws a Multipoint. |
| POINT |
Draws a point. |
| POLYGON |
Draws a polygon. |
| POLYLINE |
Draws a polyline. |
Methods
Events
Constructor Detail
Creates a new Draw object. A Map is a required parameter.
Parameters:
|
<Map>
map |
Required |
Map the toolbar is associated with.
|
Properties Detail
Symbol to be used when drawing a
Polyline.
<Boolean> respectDrawingVertexOrder
When set to false, the geometry is modified to be topologically correct. When set to true, the input geometry is not modified.
Known values: true | false
Default value: false
Methods Detail
Activates the toolbar for drawing geometries. Activating the toolbar disables map navigation.
Return value: none
Input Parameters:
|
<String> geometryType |
Required |
The type of geometry drawn. See the Constants table for valid values. |
Deactivates the toolbar and reactivates map navigation.
Return value: none
setFillSymbol(fillSymbol)
Sets the fill symbol.
Return value: none
Input Parameters:
setLineSymbol(lineSymbol)
Sets the line symbol.
Return value: none
Input Parameters:
setMarkerSymbol(markerSymbol)
Sets the marker symbol.
Return value: none
Input Parameters:
setRespectDrawingVertexOrder(set)
Sets whether the polygon geometry should be modified to be topologically correct.
Return value: none
Input Parameters:
|
<Boolean> set |
Required |
When set to false, the geometry is modified to be topologically correct. When set to true, the input geometry is not modified. |
Events Detail
Fires when drawing is complete.
Arguments:
|
<Geometry> geometry
|
Geometry drawn on the client.
|