dojox/geo/charting/MouseInteractionSupport (version 1.10)

Summary

class to handle mouse interactions on a dojox.geo.charting.Map widget

Usage

var foo = new MouseInteractionSupport(map,options);
dojox/geo/charting/MouseInteractionSupport
Parameter Type Description
map dojox/geo/charting/Map

the Map widget this class provides touch navigation for.

options Object
Optional

An object defining additional configuration properties.

See the dojox/geo/charting/MouseInteractionSupport reference documentation for more information.

Property Summary

Method Summary

Properties

_cancelMouseClick
_currentFeature
_mapClickLocation
_mouseDownListener
_mouseDragListener
_mouseMoveListener
_mouseUpClickListener
_mouseUpListener
_mouseWheelListener
_onDragStartListener
_onSelectStartListener
_screenClickLocation
_zoomEnabled
mouseClickThreshold

Methods

_getFeatureFromMouseEvent(mouseEvent)

utility function to return the feature located at this mouse event location

Parameter Type Description
mouseEvent MouseEvent

the mouse event

Returns:any | undefined

the feature found if any, null otherwise.

_mouseClickHandler(mouseEvent)

action performed on the map when a mouse click was performed

Parameter Type Description
mouseEvent MouseEvent

the mouse event

_mouseDownHandler(mouseEvent)

action performed on the map when a mouse down was performed

Parameter Type Description
mouseEvent MouseEvent

the mouse event

_mouseDragHandler(mouseEvent)

action performed on the map when a mouse drag was performed

Parameter Type Description
mouseEvent MouseEvent

the mouse event

_mouseMoveHandler(mouseEvent)

action performed on the map when a mouse move was performed

Parameter Type Description
mouseEvent MouseEvent

the mouse event

_mouseUpClickHandler(mouseEvent)
Parameter Type Description
mouseEvent undefined
_mouseUpHandler(mouseEvent)

action performed on the map when a mouse up was performed

Parameter Type Description
mouseEvent MouseEvent

the mouse event

_mouseWheelHandler(mouseEvent)

action performed on the map when a mouse wheel up/down was performed

Parameter Type Description
mouseEvent MouseEvent

the mouse event

connect()

connects this mouse support class to the Map component

disconnect()

disconnects any installed listeners

setEnablePan(enable)

enables mouse panning on the map

Parameter Type Description
enable Boolean

Indicates whether mouse zoom is enabled.

setEnableZoom(enable)

enables mouse zoom on the map

Parameter Type Description
enable Boolean

Indicates whether mouse zoom is enabled.

Error in the documentation? Can’t find what you are looking for? Let us know!