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

    Type Alias MassifEventData<C, E>

    MassifEventData: EventData & PayloadFields<C, E> & {
        consumable: boolean;
        consumed: boolean;
        eventName: string;
        object: MassifObject<C>;
        payload: MassifObject<PayloadClass<C, E>> | null;
        get<P extends string>(path: P): ValueAt<PayloadClass<C, E>, P>;
        getPos<P extends string>(
            path: P,
            projection?: ProjectionName,
        ): PositionAt<PayloadClass<C, E>, P>;
        getPos(path: string & {}, projection?: ProjectionName): Position | Bounds;
    }

    Type Parameters

    Type Declaration

    • Readonlyconsumable: boolean
    • consumed: boolean

      Set true to hide the event from later subscribers and the map. Only consumable events (vectortile.clicked, vectorelement.clicked, celestial.clicked, sky.clicked); elsewhere ignored, warned once.

    • eventName: string
    • object: MassifObject<C>
    • payload: MassifObject<PayloadClass<C, E>> | null

      Valid ONLY while the handler runs (freed on the way out). Null for map.idle.

    • get: function
      • Shorthand for payload.get(path). Throws when the event carries no payload.

        Type Parameters

        • P extends string

        Parameters

        • path: P

        Returns ValueAt<PayloadClass<C, E>, P>

    • getPos: function