Class adf.MapLine
Extends
adf.MapToolItem.
Defined in: MapToolItem.js.
Constructor Attributes | Constructor Name and Description |
---|---|
adf.MapLine(id, toolName, isMarker)
Creates a new tool item to draw a line 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, selectedImage, selectedStyle, showLoading, toolTip
Method Attributes | Method Name and Description |
---|---|
activate()
activates the toolitem
|
|
postAction(from, to)
This callback is called after adf.DrawLineAction is completed.
|
- Methods borrowed from class adf.MapToolItem:
- deactivate
Class Detail
adf.MapLine(id, toolName, isMarker)
Creates a new tool item to draw a line 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.DrawLineAction
{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}
name
The name of the ToolItem
Method Detail
activate()
activates the toolitem
postAction(from, to)
This callback is called after adf.DrawLineAction is completed.
Based on the adf.MapLine#isMarker value, either draws line on map control
or sends the coordinates of the line to be drawn to the server
It sends both screen coordinates and map coordinates for adf.Line shape drawn by the action
The adf.ToolItem#clientPostBack determines this request to the server will be AJAX (partial) or full postback