Class adf.EditingPoint
Extends
adf.EditingToolItem.
Defined in: EditTask.js.
Constructor Attributes | Constructor Name and Description |
---|---|
adf.EditingPoint(id, toolName, action, estate)
Creates a new editing tool item to create a point feature
|
Field Attributes | Field Name and Description |
---|---|
The associated action of the ToolItem
|
|
's ToolItem Collection this toolitem belongs to
|
|
The id of the ToolItem
|
|
The name of the ToolItem
|
- Fields borrowed from class adf.EditingToolItem:
- 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 |
---|---|
continuous Callback Method is called as the adf.EditingDrawPointAction is performed.
|
|
postAction(Boolean)
PostAction is called when the adf.EditingDrawPointAction is completed
|
|
update()
|
- Methods borrowed from class adf.EditingToolItem:
- activate, updateSnapping
- Methods borrowed from class adf.MapToolItem:
- deactivate
Class Detail
adf.EditingPoint(id, toolName, action, estate)
Creates a new editing tool item to create a point feature
- 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.EditingDrawPointAction
{Boolean}
editingState
's ToolItem Collection this toolitem belongs to
{String}
id
The id of the ToolItem
{String}
name
The name of the ToolItem
Method Detail
continuousAction()
continuous Callback Method is called as the adf.EditingDrawPointAction 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
In case of adf.EditingPoint there is no state to be stored at this time
- Parameters:
- adf.Point
- point This point is the snap request pint sent to server
postAction(Boolean)
PostAction is called when the adf.EditingDrawPointAction is completed
- Parameters:
- adf.Point
- point The digitized point
- Boolean
- isSnapPoint Whether this point is map coordinates ( true) or in Screen Coordinates ( false)
update()
- Deprecated:
- Function deprecated in 10.0