Class MapMoveReason

java.lang.Object
com.massifmaps.ui.MapMoveReason

public final class MapMoveReason extends Object
What caused a camera change. Carried by every camera event, so an app can tell its own
moves from the user's without watching touches itself.
  • Field Details

    • MAP_MOVE_REASON_GESTURE

      public static final int MAP_MOVE_REASON_GESTURE
      The user, directly: a gesture, a mouse wheel, or the inertia that follows one.
      See Also:
    • MAP_MOVE_REASON_ANIMATION

      public static final int MAP_MOVE_REASON_ANIMATION
      An animation the SDK is stepping - a flight, or a move given a duration. The call
      that started it reported the reason it was made with; every frame after that is
      this one.
      See Also:
    • MAP_MOVE_REASON_API

      public static final int MAP_MOVE_REASON_API
      The app, through a call that took effect immediately: setFocusPos, setZoom,
      an option change that moved the camera.
      See Also:
  • Constructor Details

    • MapMoveReason

      public MapMoveReason()