Class adf.EditingPoly
Extends
adf.EditingToolItem.
Defined in: EditTask.js.
Constructor Attributes | Constructor Name and Description |
---|---|
adf.EditingPoly(id, toolName, action, estate)
Creates a new toolitem to create a polyline or polygon shape
|
Field Attributes | Field Name and Description |
---|---|
The associated action of the ToolItem
|
|
The id of the ToolItem
|
|
The name of the ToolItem
|
- Fields borrowed from class adf.EditingToolItem:
- editingState, isCol, taskId
- Fields borrowed from class adf.MapToolItem:
- blockMapPan, blockMapZoom, control
- Fields borrowed from class adf.ToolItem:
- clientPostBack, defaultImage, defaultStyle, disabledImage, disabledStyle, element, hoverImage, hoverStyle, isActive, isCommand, isDisabled, isMarker, selectedImage, selectedStyle, showLoading, toolTip
Method Attributes | Method Name and Description |
---|---|
continuousAction(Boolean)
continuous Callback Method is called as the adf.EditingDrawPolyShapeAction is performed.
|
|
postAction(points)
PostAction is called when the adf.EditingDrawLineAction is completed
The PostAction sends these array of points in both screen and map coordinates
|
|
update()
|
- Methods borrowed from class adf.EditingToolItem:
- activate, updateSnapping
- Methods borrowed from class adf.MapToolItem:
- deactivate
Class Detail
adf.EditingPoly(id, toolName, action, estate)
Creates a new toolitem to create a polyline or polygon shape
- Parameters:
- {String} id
- the id of the tool
- {String} toolName
- the name of the tool
- {adf.Action} action
- the adf.EditingDrawAction bound to this tool
- {adf.EditingState} estate
- adf.EditingState's ToolItem Collection this toolitem belongs to, optional can be null when provided, This allows the ToolItem's state to be preserved during map operations
Field Detail
{String}
action
The associated action of the ToolItem
- Default Value:
- adf.EditingDrawPolyShapeAction
{String}
id
The id of the ToolItem
{String}
name
The name of the ToolItem
Method Detail
continuousAction(Boolean)
continuous Callback Method is called as the adf.EditingDrawPolyShapeAction is performed.
This method does two things
1. Sends snapping request to the server if this toolitem supports snapping
2. if this toolitem is part of Editing State Collection, it stores the state of the toolitem in its {@adf.EditingState} ToolItemCollection
- Parameters:
- adf.Point
- point This point is the snap requested point sent to server or the point that need to be added to the EditingState
- Boolean
- isSnapPoint when defined, this above point is a partial digitized pointand its stored in the Editing State True/False indicates whether this digitized point is in map coordinate or screen coordinate
postAction(points)
PostAction is called when the adf.EditingDrawLineAction is completed
The PostAction sends these array of points in both screen and map coordinates
- Parameters:
- {Array} points
update()
- Deprecated:
- Function deprcated in 10.0