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

    Class MassifMap<T>

    Type Parameters

    Hierarchy

    • View
      • MassifMap
    Index

    Constructors

    Properties

    bearing: number
    eventOptions: {
        mapClicked?: {
            debounce?: number;
            projection?: string;
            throttle?: number;
        };
        mapIdle?: { debounce?: number; projection?: string; throttle?: number };
        mapInteraction?: {
            debounce?: number;
            projection?: string;
            throttle?: number;
        };
        mapMoved?: { debounce?: number; projection?: string; throttle?: number };
        mapReady?: { debounce?: number; projection?: string; throttle?: number };
        mapStable?: { debounce?: number; projection?: string; throttle?: number };
    }

    Set before the map loads (e.g. from markup), or pass to enableFacadeEvents afterwards.

    focusPos: GenericMapPos<T>
    mapView: any
    metersPerPixel: number
    projection: Projection
    restrictedPanning: boolean
    tilt: number
    zoom: number
    mapClickedEvent: string = 'mapClicked'
    mapIdleEvent: string = 'mapIdle'
    mapInteractionEvent: string = 'mapInteraction'
    mapMovedEvent: string = 'mapMoved'
    mapReadyEvent: string = 'mapReady'
    mapStableEvent: string = 'mapStable'

    Methods

    • Parameters

      • layer: Layer<any, any>
      • Optionalindex: number

      Returns any

    • Returns any

    • Parameters

      • Optionalwait: boolean

      Returns Promise<ImageSource>

    • Returns any

    • Returns any

    • Called on map load; only needed to change the options afterwards.

      Parameters

      • OptionaleventOptions: {
            mapClicked?: {
                debounce?: number;
                projection?: string;
                throttle?: number;
            };
            mapIdle?: { debounce?: number; projection?: string; throttle?: number };
            mapInteraction?: {
                debounce?: number;
                projection?: string;
                throttle?: number;
            };
            mapMoved?: { debounce?: number; projection?: string; throttle?: number };
            mapReady?: { debounce?: number; projection?: string; throttle?: number };
            mapStable?: { debounce?: number; projection?: string; throttle?: number };
        }

      Returns void

    • Parameters

      • position: any

      Returns GenericMapPos<T>

    • 0..1 while a flight is running, -1 when there is none

      Returns number

    • Returns Layers<any>

    • wrapped and cached; null until the map is ready

      Returns MapOptions

    • full-screen shader run on the finished frame; null takes it off again

      Returns PostProcessEffect

    • Returns number

    • Returns boolean

    • Parameters

      • pos: any

      Returns ScreenPos

    • Parameters

      • mapBounds: MapBounds<T>
      • screenBounds: ScreenBounds
      • integerZoom: boolean
      • resetRotation: boolean
      • resetTilt: boolean
      • durationSeconds: number

      Returns any

    • Removes the listener(s) for the specified event name.

      Type Parameters

      Parameters

      • event: K
      • Optionalcallback: (args: MassifMapEventMap[K]) => void

        An optional specific event listener to remove (if omitted, all event listeners by this name will be removed).

      • OptionalthisArg: any

        An optional parameter which, when set, will be used to refine search of the correct event listener to be removed.

      Returns void

    • Parameters

      • event: string
      • Optionalcallback: (args: EventData) => void
      • OptionalthisArg: any

      Returns void

    • Adds a listener for the specified event name.

      Type Parameters

      Parameters

      • event: K
      • callback: (args: MassifMapEventMap[K]) => void

        The event listener to add. Will be called when an event of the given name is raised.

      • OptionalthisArg: any

        An optional parameter which, when set, will be bound as the this context when the callback is called. Falsy values will be not be bound.

      Returns void

    • Raised when a loaded event occurs.

      Parameters

      • event: string
      • callback: (args: EventData) => void
      • OptionalthisArg: any

      Returns void

    • Adds a listener for the specified event name, which, once fired, will remove itself.

      Type Parameters

      Parameters

      • event: K
      • callback: (args: MassifMapEventMap[K]) => void

        The event listener to add. Will be called when an event of the given name is raised.

      • OptionalthisArg: any

        An optional parameter which, when set, will be bound as the this context when the callback is called. Falsy values will be not be bound.

      Returns void

    • Parameters

      • event: string
      • callback: (args: EventData) => void
      • OptionalthisArg: any

      Returns void

    • Parameters

      • layers: Layer<any, any>[]

      Returns any

    • Parameters

      Returns any

    • Returns any

    • Parameters

      • eventName: string
      • Optionaldata: any

      Returns any

    • Parameters

      • value: number
      • Optionalduration: number

      Returns any

    • Parameters

      Returns any

    • Parameters

      Returns void

    • Parameters

      Returns void

    • Parameters

      • value: number
      • target: number | GenericMapPos<T>
      • Optionalduration: number

      Returns any

    • Parameters

      Returns void

    • Parameters

      Returns void

    • Parameters

      • value: number
      • Optionalduration: number

      Returns any

    • Parameters

      • value: number
      • target: number | GenericMapPos<T>
      • Optionalduration: number

      Returns any

    • Returns void

    • Whether every native listener the plugin installs hops to the main thread and waits before calling JS (default true): the SDK calls back from threads with no JS runtime.

      Parameters

      • value: boolean

      Returns any