Class adf.MapContinuousPan
Extends
adf.MapToolItem.
Defined in: MapToolItem.js.
Constructor Attributes | Constructor Name and Description |
---|---|
adf.MapContinuousPan(id, toolName)
Similar to the adf.MapPan ToolItem, this ToolItem is used to pan the map.
|
Field Attributes | Field Name and Description |
---|---|
The adf.action associated with the ToolItem
|
|
The id of the ToolItem
|
|
The name of the ToolItem
|
|
Whether to update overview while panning map.
|
- 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 |
---|---|
activate()
activates the ToolItem
|
|
continuousAction(x, y)
Continuous callback function which gets called as map is being dragged
|
|
postAction(x, y)
Callback function which gets called after the element is dragged
|
- Methods borrowed from class adf.MapToolItem:
- deactivate
Class Detail
adf.MapContinuousPan(id, toolName)
Similar to the adf.MapPan ToolItem, this ToolItem is used to pan the map. The
map images are retrieved continuously while the map is being panned.
- Parameters:
- {String} id
- {String} toolName
Field Detail
{adf.Action}
action
The adf.action associated with the ToolItem
- Default Value:
- adf.DragElementAction
{String}
id
The id of the ToolItem
{String}
name
The name of the ToolItem
{Boolean}
updateOverview
Whether to update overview while panning map. Default is false
- Default Value:
- true
Method Detail
activate()
activates the ToolItem
continuousAction(x, y)
Continuous callback function which gets called as map is being dragged
- Parameters:
- {Number} x
- x offset of current cursor position with respect to the position where drag is initiated
- {Number} y
- y offset of current cursor position with respect to the position where drag is initiated
postAction(x, y)
Callback function which gets called after the element is dragged
- Parameters:
- {Number} x
- x offset of current cursor position with respect to the position where drag is initiated
- {Number} y
- y offset of current cursor position with respect to the position where drag is initiated