CameraDelta

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)

Types

Link copied to clipboard
object Companion

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

Degrees to add to the bearing.

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.

Link copied to clipboard

Degrees to add to the pitch.

Link copied to clipboard

Multiplies the map's scale. 2 zooms in by one level.