Camera Delta
data class CameraDelta(val offset: ScreenPoint? = null, val scale: Double? = null, val bearing: Double? = null, val pitch: Double? = null, val anchor: ScreenPoint? = null, val momentum: GestureMomentum? = null, val animation: AnimationOptions = AnimationOptions(), val gesturePhase: GesturePhase = GesturePhase.NONE)
A change to the camera from where it is now, for gestures.
See mln_camera_delta in the C API reference.
Constructors
Link copied to clipboard
constructor(offset: ScreenPoint? = null, scale: Double? = null, bearing: Double? = null, pitch: Double? = null, anchor: ScreenPoint? = null, momentum: GestureMomentum? = null, animation: AnimationOptions = AnimationOptions(), gesturePhase: GesturePhase = GesturePhase.NONE)
Properties
Link copied to clipboard
The screen point that scale, bearing, and pitch keep in place. It needs one of them, and it combines with offset only in a delta without a duration.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
How the gesture keeps moving after this delta. Only a delta in the GesturePhase.END phase carries it.
Link copied to clipboard
Moves the map's content this far on the screen, as a drag does.