Enables the user to draw a shape on the map.
Namespace:
ESRI.ADF.UI
Syntax
function getGeometry ( type : ShapeType, onComplete : Function, onCancel : Function, fillcolor : String, linecolor : String, cursor : String, continuous : Boolean ) |
Parameters
- type
- Type: ESRI.ADF.Graphics..::.ShapeType
Shape type to draw on the map
- onComplete
- Type: [T:J#Function]
Function to call on completion. The handler takes one parameter which will return a ESRI.ADF.Geometries.Polyline
- onCancel
- Type: [T:J#Function]
Function to call if drawing was cancelled.
- fillcolor
- Type: [T:J#String]
HTML color code for fill color used when drawing. The fill color will be used as fill for surface types with some transparency applied to it.
- linecolor
- Type: [T:J#String]
HTML color code for line color used when drawing. The line color will be used as outline color for surface types.
- cursor
- Type: [T:J#String]
The CSS style cursor name to use. Defaults to 'crosshair'.
- continuous
- Type: [T:J#Boolean]
If true, keeps collecting geometries until cancelGetGeometry() is called or the mousemode changes.