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

    Interface RNGoogleMapsPlusViewProps

    Native Google Maps view props. Direct mapping to Google Maps SDK for Android/iOS. Platform differences remain unless explicitly aligned.

    interface RNGoogleMapsPlusViewProps {
        buildingEnabled?: boolean;
        circles?: RNCircle[];
        customMapStyle?: string;
        heatmaps?: RNHeatmap[];
        indoorEnabled?: boolean;
        initialProps?: RNInitialProps;
        kmlLayers?: RNKMLayer[];
        locationConfig?: RNLocationConfig;
        mapPadding?: RNMapPadding;
        mapType?: RNMapType;
        mapZoomConfig?: RNMapZoomConfig;
        markers?: RNMarker[];
        myLocationEnabled?: boolean;
        onCameraChange?: (
            region: RNRegion,
            camera: RNCamera,
            isGesture: boolean,
        ) => void;
        onCameraChangeComplete?: (
            region: RNRegion,
            camera: RNCamera,
            isGesture: boolean,
        ) => void;
        onCameraChangeStart?: (
            region: RNRegion,
            camera: RNCamera,
            isGesture: boolean,
        ) => void;
        onCirclePress?: (id: string) => void;
        onIndoorBuildingFocused?: (building: RNIndoorBuilding) => void;
        onIndoorLevelActivated?: (level: RNIndoorLevel) => void;
        onInfoWindowClose?: (id: string) => void;
        onInfoWindowLongPress?: (id: string) => void;
        onInfoWindowPress?: (id: string) => void;
        onLocationError?: (error: RNLocationErrorCode) => void;
        onLocationUpdate?: (location: RNLocation) => void;
        onMapError?: (error: RNMapErrorCode, msg: string) => void;
        onMapLoaded?: (region: RNRegion, camera: RNCamera) => void;
        onMapLongPress?: (coordinate: RNLatLng) => void;
        onMapPress?: (coordinate: RNLatLng) => void;
        onMapReady?: (ready: boolean) => void;
        onMarkerDrag?: (id: string, location: RNLatLng) => void;
        onMarkerDragEnd?: (id: string, location: RNLatLng) => void;
        onMarkerDragStart?: (id: string, location: RNLatLng) => void;
        onMarkerPress?: (id: string) => void;
        onMyLocationButtonPress?: (pressed: boolean) => void;
        onMyLocationPress?: (location: RNLocation) => void;
        onPoiPress?: (placeId: string, name: string, coordinate: RNLatLng) => void;
        onPolygonPress?: (id: string) => void;
        onPolylinePress?: (id: string) => void;
        polygons?: RNPolygon[];
        polylines?: RNPolyline[];
        trafficEnabled?: boolean;
        transitEnabled?: boolean;
        uiSettings?: RNMapUiSettings;
        urlTileOverlays?: RNUrlTileOverlay[];
        userInterfaceStyle?: RNUserInterfaceStyle;
    }

    Hierarchy

    • HybridViewProps
      • RNGoogleMapsPlusViewProps
    Index
    buildingEnabled?: boolean

    Enables 3D buildings.

    false

    circles?: RNCircle[]

    Circles. See RNCircle.

    customMapStyle?: string

    JSON map style string. Must be a Google Maps StyleSpec JSON.

    heatmaps?: RNHeatmap[]

    Heatmaps. See RNHeatmap.

    indoorEnabled?: boolean

    Enables indoor maps.

    false

    initialProps?: RNInitialProps

    Initial map configuration. See RNInitialProps.

    kmlLayers?: RNKMLayer[]

    KML layers. See RNKMLayer.

    locationConfig?: RNLocationConfig

    Location subsystem config. See RNLocationConfig.

    mapPadding?: RNMapPadding

    Map padding. See RNMapPadding.

    mapType?: RNMapType

    Base map type.

    'normal' See RNMapType.

    mapZoomConfig?: RNMapZoomConfig

    Zoom range. See RNMapZoomConfig.

    markers?: RNMarker[]

    Markers. See RNMarker.

    myLocationEnabled?: boolean

    Enables "My Location" blue dot.

    false

    onCameraChange?: (
        region: RNRegion,
        camera: RNCamera,
        isGesture: boolean,
    ) => void

    Camera moving.

    onCameraChangeComplete?: (
        region: RNRegion,
        camera: RNCamera,
        isGesture: boolean,
    ) => void

    Camera idle.

    onCameraChangeStart?: (
        region: RNRegion,
        camera: RNCamera,
        isGesture: boolean,
    ) => void

    Camera move started.

    onCirclePress?: (id: string) => void

    Tap on circle.

    onIndoorBuildingFocused?: (building: RNIndoorBuilding) => void

    Indoor building focused.

    onIndoorLevelActivated?: (level: RNIndoorLevel) => void

    Indoor level activated.

    onInfoWindowClose?: (id: string) => void

    Info window closed.

    onInfoWindowLongPress?: (id: string) => void

    Info window long-press.

    onInfoWindowPress?: (id: string) => void

    Info window tap.

    onLocationError?: (error: RNLocationErrorCode) => void

    Location subsystem error.

    onLocationUpdate?: (location: RNLocation) => void

    Location update.

    onMapError?: (error: RNMapErrorCode, msg: string) => void

    Map errors.

    onMapLoaded?: (region: RNRegion, camera: RNCamera) => void

    First frame rendered.

    onMapLongPress?: (coordinate: RNLatLng) => void

    Long-press on map.

    onMapPress?: (coordinate: RNLatLng) => void

    Tap on map.

    onMapReady?: (ready: boolean) => void

    Native map instance created. Android: false if the Maps SDK could not be initialized, e.g. Play Services missing or outdated. Fires again with true once the user has resolved it.

    onMarkerDrag?: (id: string, location: RNLatLng) => void

    Marker drag update.

    onMarkerDragEnd?: (id: string, location: RNLatLng) => void

    Marker drag end.

    onMarkerDragStart?: (id: string, location: RNLatLng) => void

    Marker drag start.

    onMarkerPress?: (id: string) => void

    Tap on marker.

    onMyLocationButtonPress?: (pressed: boolean) => void

    Tap on the My-Location button.

    onMyLocationPress?: (location: RNLocation) => void

    Tap on the blue My-Location indicator.

    onPoiPress?: (placeId: string, name: string, coordinate: RNLatLng) => void

    Tap on POI.

    onPolygonPress?: (id: string) => void

    Tap on polygon.

    onPolylinePress?: (id: string) => void

    Tap on polyline.

    polygons?: RNPolygon[]

    Polygons. See RNPolygon.

    polylines?: RNPolyline[]

    Polylines. See RNPolyline.

    trafficEnabled?: boolean

    Enables traffic layer.

    false

    transitEnabled?: boolean

    Enables transit layer.

    false

    uiSettings?: RNMapUiSettings

    UI and gesture settings. See RNMapUiSettings.

    urlTileOverlays?: RNUrlTileOverlay[]

    URL tile overlays. See RNUrlTileOverlay.

    userInterfaceStyle?: RNUserInterfaceStyle

    Overrides OS UI mode. See RNUserInterfaceStyle.

    On Android, dark mode requires the latest Google Maps renderer and is not supported in liteMode. Devices or emulators with missing or outdated Google Play services may fall back to the legacy renderer.