react-native-google-maps-plus - v1.14.0
    Preparing search index...

    Interface RNGoogleMapsPlusStreetViewMethods

    Imperative Street View methods.

    interface RNGoogleMapsPlusStreetViewMethods {
        isGooglePlayServicesAvailable(): boolean;
        openLocationSettings(): void;
        requestLocationPermission(): Promise<RNLocationPermissionResult>;
        setCamera(
            camera: RNStreetViewCamera,
            animated?: boolean,
            durationMs?: number,
        ): void;
        setPosition(
            position: RNLatLng,
            radius?: number,
            source?: RNStreetViewSource,
        ): void;
        setPositionById(panoramaId: string): void;
        showLocationDialog(): void;
    }

    Hierarchy

    • HybridViewMethods
      • RNGoogleMapsPlusStreetViewMethods
    Index
    • Checks Google Play Services availability. iOS: always returns false. Android: performs a real system check. Returns false for outdated, disabled or updating Play Services. The panorama view is still created, so the Maps SDK can show its own error UI.

      Returns boolean

      true if Google Play Services are available, otherwise false.

    • Sets the Street View camera orientation.

      Parameters

      • camera: RNStreetViewCamera

        Target bearing, tilt, and zoom.

      • Optionalanimated: boolean

        Whether to animate.

      • OptionaldurationMs: number

        Animation duration in milliseconds.

      Returns void

      false

      3000

    • Navigates to a panorama near the given position. Use this for post initialization navigation with full control over the search.

      Parameters

      • position: RNLatLng

        Target coordinate used to search for a Street View panorama. See RNLatLng.

      • Optionalradius: number

        Search radius in meters.

      • Optionalsource: RNStreetViewSource

        Panorama source filter.

      Returns void

      50

      'default'

    • Navigates to a specific panorama by its ID.

      Parameters

      • panoramaId: string

        Street View panorama identifier.

      Returns void