Class adf.MapPolygon
Extends
adf.MapPoly.
Defined in: MapToolItem.js.
Constructor Attributes | Constructor Name and Description |
---|---|
adf.MapPolygon(id, toolName, action, isMarker)
Creates a new toolitem to draw a polygon shape 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)
|
|
Is the shape drawn a polygon
|
|
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
- Methods borrowed from class adf.MapPoly:
- activate, continuousAction, postAction
- Methods borrowed from class adf.MapToolItem:
- deactivate
Class Detail
adf.MapPolygon(id, toolName, action, isMarker)
Creates a new toolitem to draw a polygon shape on the map control
- Parameters:
- {String} id
- the id of the tool
- {String} toolName
- the name of the tool
- {adf.Action} action
- the adf.Action bound to this 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.DrawPolygonAction
{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)
{Boolean
#deafult true}
isPolygon
Is the shape drawn a polygon
{String}
name
The name of the ToolItem