react-native-google-maps-plus - v1.12.1
    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;
        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

    Methods

    • 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

    • Checks Google Play Services availability. iOS: always returns false. Android: performs a real system check.

      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