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

    Interface RNGoogleMapsPlusViewMethods

    Imperative Google Maps methods. Direct calls into native Google Maps SDK.

    interface RNGoogleMapsPlusViewMethods {
        animateToBounds(
            bounds: RNLatLngBounds,
            padding?: number,
            durationMs?: number,
            lockBounds?: boolean,
        ): void;
        clearMarkerIconCache(): void;
        hideMarkerInfoWindow(id: string): void;
        isGooglePlayServicesAvailable(): boolean;
        openLocationSettings(): void;
        requestLocationPermission(): Promise<RNLocationPermissionResult>;
        setCamera(
            camera: RNCameraUpdate,
            animated?: boolean,
            durationMs?: number,
        ): void;
        setCameraBounds(bounds?: RNLatLngBounds): void;
        setCameraToCoordinates(
            coordinates: RNLatLng[],
            padding?: RNMapPadding,
            animated?: boolean,
            durationMs?: number,
        ): void;
        showLocationDialog(): void;
        showMarkerInfoWindow(id: string): void;
        snapshot(options: RNSnapshotOptions): Promise<string | undefined>;
    }

    Hierarchy

    • HybridViewMethods
      • RNGoogleMapsPlusViewMethods
    Index
    • Animates the camera to fit the given bounds.

      iOS: adds an explicit animation phase for parity. Android: uses native timing.

      Parameters

      • bounds: RNLatLngBounds

        Target bounds the camera should fit. See RNLatLngBounds.

      • Optionalpadding: number

        Padding in logical units.

      • OptionaldurationMs: number

        Animation duration in milliseconds.

      • OptionallockBounds: boolean

        Restricts the camera to these bounds after animating.

      Returns void

      0

      3000

      false

    • Clears the rendered marker icon cache.

      Already-rendered markers keep their current icon and are NOT re-rendered. Renders that are already running continue and repopulate the emptied cache on completion. The cache only affects future renders: the next time a marker's icon is requested with a style hash that is no longer cached, it is rendered from source instead of served from cache. Use to reclaim memory.

      Returns void

    • 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 map 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.

    • Opens the OS location settings.

      iOS: opens the app settings. Android: opens system location settings.

      Returns void

    • Sets the camera.

      iOS: adds an explicit animation phase for parity. Android: uses native timing.

      Parameters

      • camera: RNCameraUpdate

        Target camera update. See RNCameraUpdate.

      • Optionalanimated: boolean

        Whether to animate.

      • OptionaldurationMs: number

        Animation duration in milliseconds.

      Returns void

      false

      3000

    • Fits the camera to the given coordinates.

      iOS: adds an explicit animation phase for parity. Android: uses native timing.

      Parameters

      • coordinates: RNLatLng[]

        Coordinates the camera should fit.

      • Optionalpadding: RNMapPadding

        Padding around the fitted area. See RNMapPadding.

      • Optionalanimated: boolean

        Whether to animate.

      • OptionaldurationMs: number

        Animation duration in milliseconds.

      Returns void

      false

      3000