API Docs for: 7.2
Show:

MQA.PanZoomAnimator Class

Module: MQA

Class that manages an animated pan/zoom interaction. If targetZoom is null, then this will only animate a pan. If targetCenter is null, then this will only animate a zoom.

Methods

fireZoomEnd

() private

Convenience method to trigger zoomEnd event. Must pass the previous (starting) zoom level

fireZoomStart

() private

Convenience method to trigger zoomStart events on the map

handleMove

(
  • map
  • eventName
)

Called to broadcast a move/drag event.

Parameters:

  • map MQA.TileMap
  • eventName String

    can be: MoveStart, Move, MoveEnd, Drag, DragStart, DragEnd.

modifyZoom

(
  • map
  • callback
)
private

Whenever doing an action that will result in the zoom transform changing, do the call by passing a callback to this function. It will perform the necessary event processing. The callback will be invoked with its 'this' parameter set to the map.

Parameters: