@situm/react-native
    Preparing search index...

    Interface MapViewRef

    interface MapViewRef {
        cancelNavigation: () => void;
        followUser: () => void;
        navigateToCar: (params?: NavigateToCarPayload) => void;
        navigateToPoi: (
            params: { accessibilityMode?: AccessibilityMode; identifier: number },
        ) => void;
        navigateToPoint: (
            params: {
                accessibilityMode?: AccessibilityMode;
                floorIdentifier: string;
                lat: number;
                lng: number;
                navigationName?: string;
            },
        ) => void;
        search: (searchFilter: SearchFilter) => void;
        selectCar: () => void;
        selectFloor: (
            floorIdentifier: number,
            options?: CartographySelectionOptions,
        ) => void;
        selectPoi: (poiId: number) => void;
        selectPoiCategory: (categoryId: number) => void;
        setDirectionsOptions: (directionsOptions: MapViewDirectionsOptions) => void;
        setFavoritePois: (poiIds: number[]) => void;
        setOnDirectionsRequestInterceptor: (
            params: {
                onDirectionsRequestInterceptor: OnDirectionsRequestInterceptor;
            },
        ) => void;
        unfollowUser: () => void;
    }
    Index

    Properties

    cancelNavigation: () => void

    Cancels the current navigation, if any.

    followUser: () => void

    Focuses camera on user's current position locking it till user moves it

    navigateToCar: (params?: NavigateToCarPayload) => void

    Starts navigating to a point saved as find my car.

    navigateToPoi: (
        params: { accessibilityMode?: AccessibilityMode; identifier: number },
    ) => void

    Starts navigating to the given POI.

    navigateToPoint: (
        params: {
            accessibilityMode?: AccessibilityMode;
            floorIdentifier: string;
            lat: number;
            lng: number;
            navigationName?: string;
        },
    ) => void

    Starts navigating to the given coordinates, at the given floor.

    search: (searchFilter: SearchFilter) => void

    Performs a search with the given SearchFilter.

    This action will have the same effect as the user searching in the searchbar.

    selectCar: () => void

    Selects a point saved as Find My Car on the map.

    To use it, the feature 'Find My Car' must be enabled.

    selectFloor: (
        floorIdentifier: number,
        options?: CartographySelectionOptions,
    ) => void

    Selects the given floor by its ID and optionally fit the ViewPort to floor.

    Type declaration

    selectPoi: (poiId: number) => void

    Selects the given POI in the map.

    Type declaration

    selectPoiCategory: (categoryId: number) => void

    Selects the given POI category and displays the list of POIs that belong to the given category. Also, the POIs that do not belong to this category will be hidden in the map.

    Type declaration

      • (categoryId: number): void
      • Parameters

        Returns void

    setDirectionsOptions: (directionsOptions: MapViewDirectionsOptions) => void

    Define the MapViewDirectionsOptions that the routes calculated by the MapView will use.

    Type declaration

    setFavoritePois: (poiIds: number[]) => void

    Sets the list of favoritePois that will appear in the mapView. This method removes any previous pois from the favorite list.

    Type declaration

      • (poiIds: number[]): void
      • Parameters

        Returns void

    setOnDirectionsRequestInterceptor: (
        params: {
            onDirectionsRequestInterceptor: OnDirectionsRequestInterceptor;
        },
    ) => void
    unfollowUser: () => void

    Stops focusing camera on user's current position