LocationMapContainerRef: {
    captionRef: HTMLDivElement | null;
    containerRef: HTMLDivElement | null;
    getElements: () => HTMLElement[];
    getSelectedFeature: () => SelectedFeature;
    off: LocationMapEventStoreState["off"];
    on: LocationMapEventStoreState["onWithUnsub"];
    selectFeature: (feature: SelectedFeature) => void;
    subtitleRef: HTMLDivElement | null;
    titleRef: HTMLDivElement | null;
} & LocationMapRef

Type declaration

  • captionRef: HTMLDivElement | null

    Reference to the caption container

  • containerRef: HTMLDivElement | null

    Reference to the map container

  • getElements: () => HTMLElement[]

    Get html elements on the map

  • getSelectedFeature: () => SelectedFeature

    Get the selected feature

  • off: LocationMapEventStoreState["off"]

    Unsubscribe to an event

    A function that removes the event listener

  • on: LocationMapEventStoreState["onWithUnsub"]

    Subscribe to an event

    An unsubscribe function that removes the event listener

  • selectFeature: (feature: SelectedFeature) => void

    Select a feature by id

  • subtitleRef: HTMLDivElement | null

    Reference to the subtitle container

  • titleRef: HTMLDivElement | null

    Reference to the title container