Class adf.MapPoint
Extends
adf.MapToolItem.
Defined in: MapToolItem.js.
Constructor Attributes | Constructor Name and Description |
---|---|
adf.MapPoint(id, toolName, isMarker)
Creates a new tool item to draw a point on the map control
|
Field Attributes | Field Name and Description |
---|---|
The adf.action associated with the ToolItem
|
|
The id of the ToolItem
|
|
Whether tool item is a marker (drawn as graphic on screen) or tool (sends coordinates/request to server)
|
|
The name of the ToolItem
|
- 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, name, selectedImage, selectedStyle, showLoading, toolTip
Method Attributes | Method Name and Description |
---|---|
Deactivates the ToolItem by deactivating its action
|
|
postAction(point)
This callback is called after adf.DrawPointAction is completed.
|
- Methods borrowed from class adf.MapToolItem:
- activate
Class Detail
adf.MapPoint(id, toolName, isMarker)
Creates a new tool item to draw a point on the map control
- Parameters:
- {String} id
- the id of the tool
- {String} toolName
- the name of the tool
- {Boolean} isMarker
- when set to true, this tools drawing action will leave its graphics on the adf.graphics.Element, otherwise it removes when the action is deactivated.
Field Detail
{adf.Action}
action
The adf.action associated with the ToolItem
- Default Value:
- adf.DrawPointAction
{String}
id
The id of the ToolItem
{Boolean}
isMarker
Whether tool item is a marker (drawn as graphic on screen) or tool (sends coordinates/request to server)
{String}
toolName
The name of the ToolItem
Method Detail
deactivate()
Deactivates the ToolItem by deactivating its action
postAction(point)
This callback is called after adf.DrawPointAction is completed.
Based on the adf.MapPoint#isMarker value, either draws point using client graphics
or sends the coordinates of the point to be drawn to the server
It sends both screen coordinates and map coordinates for adf.Point shape drawn by the action
The adf.ToolItem#clientPostBack determines this request to the server will be AJAX (partial) or full postback
- Parameters:
- {adf.Point} point