onPan abstract method

void onPan(
  1. GestureState state,
  2. Point2D origin,
  3. Point2D translation,
  4. double velocity,
)

Called when the pan gesture occurs.

  • state Determines in which state the gesture is.

  • origin Position of the touch point relative to the MapView in pixels.

  • translation Translation offset since the last position in pixels.

  • velocity Velocity of panning in pixels per millisecond.

Implementation

void onPan(GestureState state, Point2D origin, Point2D translation, double velocity);