@nativescript-community/ui-massifmaps
    Preparing search index...

    Class MapCamera

    Facade calls on the ADOPTED map view, so no position becomes a MapPos proxy (massif-maps/MassifMaps#159). Positions are WGS84 [lng, lat].

    Index

    Constructors

    • Parameters

      • view: MassifObject<"massif::BaseMapView">
      • size: () => { height: number; width: number }

        The view's pixel size: BaseMapView exposes none, so the map measures it.

      Returns MapCamera

    Methods

    • Milliseconds the NEXT move animates over; reset once used.

      Parameters

      • ms: number

      Returns this

    • Axis-aligned box around the two unprojected screen corners: a tilted/rotated camera has no true bounds.

      Returns Bounds

    • Where the camera IS, not what it looks at - kilometres apart at a low tilt.

      Returns Position

    • Where the camera IS, not what it looks at - kilometres apart at a low tilt.

      Parameters

      Returns this

    • screen defaults to the whole view.

      Parameters

      • bounds: Bounds
      • Optionaloptions: {
            duration?: number;
            integerZoom?: boolean;
            resetRotation?: boolean;
            resetTilt?: boolean;
            screen?: { max: { x: number; y: number }; min: { x: number; y: number } };
        }

      Returns this

    • Returns boolean

    • Parameters

      Returns { x: number; y: number }

    • Puts the EYE at a position, where moveTo puts the focus.

      Parameters

      • position: AnyPosition
      • Optionaloptions: {
            climbHeight?: number;
            duration?: number;
            rotation?: number;
            tilt?: number;
            zoom?: number;
        }

      Returns this

    • All in ONE move: separate setters animate independently and fight each other. With no duration it is immediate and works before the map has drawn.

      Parameters

      • position: AnyPosition
      • Optionaloptions: {
            climbHeight?: number;
            duration?: number;
            rotation?: number;
            tilt?: number;
            zoom?: number;
        }

      Returns this

    • Returns Position

    • Parameters

      Returns this

    • 0 to 1 through the current flight, or -1 when none is running.

      Returns number

    • Returns number

    • Parameters

      • degrees: number

      Returns this

    • Parameters

      • x: number
      • y: number

      Returns Position

    • Returns this

    • Returns number

    • Parameters

      • degrees: number

      Returns this

    • Returns number

    • Parameters

      Returns this