| 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 |
pinchDone: function( evt, start, last )
| evt | {Event} |
| start | {Object} pinch data object related to the touchstart event that started the pinch gesture. |
| last | {Object} pinch data object related to the last touchmove event of the pinch gesture. This give us the final scale of the pinch. |
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 )