Type alias TMapClickEvent

TMapClickEvent: {
    floatingLabels?: {
        node: MappedinNode;
        text: string;
    }[];
    maps: MappedinMap[];
    nearBlueDot: boolean;
    paths?: Path[];
    polygons: MappedinPolygon[];
    position: {
        latitude: number;
        longitude: number;
    };
}

Type declaration

  • Optional floatingLabels?: {
        node: MappedinNode;
        text: string;
    }[]

    Indicates whether a floating label has been clicked on

  • maps: MappedinMap[]

    A list of MappedinMaps corresponding to every map that a user's click passed through. These are in order of first to last intersected. Will be empty if no maps were clicked.

  • nearBlueDot: boolean

    Indicates whether the user clicked close to the Blue Dot object on the map, if present. If Blue Dot is disabled, this will always be false.

  • Optional paths?: Path[]

    A list of paths that a user's click pass through. These are in order of first to last intersected. Will be empty if no paths were clicked.

  • polygons: MappedinPolygon[]

    A list of MappedinPolygons corresponding to every polygon that a user's click passed through. These are in order of first to last intersected. Will be empty if no interactive polygons were clicked.

  • position: {
        latitude: number;
        longitude: number;
    }

    The latitude / longitude of where the user clicked the map. Both components may be NaN if unable to compute these components.

    • latitude: number
    • longitude: number