ALKMaps. | |
Properties | |
type | {ALKMaps.Control.TYPES} |
containerCenter | {Object} Cached object representing the layer container center (in pixels). |
pinchOrigin | {Object} Cached object representing the pinch start (in pixels). |
currentCenter | {Object} Cached object representing the latest pinch center (in pixels). |
autoActivate | {Boolean} Activate the control when it is added to a map. |
Constructor | |
ALKMaps. | Create a control for zooming with pinch gestures. |
Functions | |
activate | Activate this control. |
deactivate | Deactivate this control. |
updateContainerCenter | Must be called each time the layer container moves. |
pinchStart | |
pinchMove | |
applyTransform | Applies the given transform to layers. |
pinchDone |
Activate this control.
activate: function ()
Deactivate this control.
deactivate: function ()
Must be called each time the layer container moves.
updateContainerCenter: function ()
pinchStart: function ( evt, pinchData )
pinchMove: function ( evt, pinchData )
Applies the given transform to layers.
applyTransform: function ( transform )
pinchDone: function ( evt, start, last )