@maplibre/native-ffi
    Preparing search index...

    Interface CameraDelta

    A change to the camera from where it is now, for gestures.

    See mln_camera_delta in the C API reference.

    interface CameraDelta {
        anchor?: ScreenPoint;
        animation?: AnimationOptions;
        bearing?: number;
        gesturePhase?: GesturePhase;
        momentum?: GestureMomentum;
        offset?: ScreenPoint;
        pitch?: number;
        scale?: number;
    }
    Index
    anchor?: ScreenPoint

    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.

    animation?: AnimationOptions
    bearing?: number

    Degrees to add to the bearing.

    gesturePhase?: GesturePhase
    momentum?: GestureMomentum

    How the gesture keeps moving after this delta. Only a delta in the GesturePhase.end phase carries it.

    offset?: ScreenPoint

    Moves the map's content this far on the screen, as a drag does.

    pitch?: number

    Degrees to add to the pitch.

    scale?: number

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