Interface: RNGoogleMapsPlusViewProps
Native Google Maps view props. Direct mapping to Google Maps SDK for Android/iOS. Platform differences remain unless explicitly aligned.
Extends
HybridViewProps
Properties
| Property | Type | Default value | Description |
|---|---|---|---|
buildingEnabled? | boolean | false | Enables 3D buildings. |
circles? | RNCircle[] | Circles. See RNCircle. | |
customMapStyle? | string | JSON map style string. Must be a Google Maps StyleSpec JSON. Remarks Ignored while RNMapOptions.mapId is set. On Android, the legacy Google Maps renderer applies it anyway. Devices or emulators with missing or outdated Google Play services may fall back to the legacy renderer. | |
heatmaps? | RNHeatmap[] | Heatmaps. See RNHeatmap. | |
indoorEnabled? | boolean | false | Enables indoor maps. |
kmlLayers? | RNKmlLayer[] | KML layers. See RNKmlLayer. | |
locationConfig? | RNLocationConfig | Location subsystem config. See RNLocationConfig. | |
mapOptions? | RNMapOptions | Initial map configuration. Applied once at mount time. See RNMapOptions. | |
mapPadding? | RNMapPadding | Map padding. See RNMapPadding. | |
mapType? | RNMapType | 'normal' See RNMapType. | Base map type. |
mapZoomConfig? | RNMapZoomConfig | Zoom range. See RNMapZoomConfig. | |
markers? | RNMarker[] | Markers. See RNMarker. | |
myLocationEnabled? | boolean | false | Enables "My Location" blue dot and location updates. |
onCameraChange? | (region, camera, isGesture) => void | Camera moving. | |
onCameraChangeComplete? | (region, camera, isGesture) => void | Camera idle. | |
onCameraChangeStart? | (region, camera, isGesture) => void | Camera move started. | |
onCirclePress? | (id) => void | Tap on circle. | |
onHeadingUpdate? | (heading) => void | Compass heading update. Requires heading updates, see RNHeadingConfig. | |
onIndoorBuildingFocused? | (building) => void | Indoor building focused. | |
onIndoorLevelActivated? | (level) => void | Indoor level activated. | |
onInfoWindowClose? | (id) => void | Info window closed. | |
onInfoWindowLongPress? | (id) => void | Info window long-press. | |
onInfoWindowPress? | (id) => void | Info window tap. | |
onLocationError? | (error) => void | Location subsystem error. Reports an error once while it persists. Requires location updates, see RNLocationConfig. | |
onLocationStatusChange? | (status) => void | Location permission or device location settings changed. Reports the status when location updates start, then every change while the view is active. Changes made in background are reported on return. Without location permission the device location switch is only reported when location updates start. The same status can be reported more than once. Requires location updates, see RNLocationConfig. | |
onLocationUpdate? | (location) => void | Location update. Requires location updates, see RNLocationConfig. | |
onMapCapabilitiesChange? | (capabilities) => void | Map capabilities changed after the map was ready. | |
onMapError? | (error, msg) => void | Map errors. | |
onMapLoaded? | (region, camera) => void | First frame rendered. | |
onMapLongPress? | (coordinate) => void | Long-press on map. | |
onMapPress? | (coordinate) => void | Tap on map. | |
onMapReady? | (ready, capabilities) => 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, location) => void | Marker drag update. | |
onMarkerDragEnd? | (id, location) => void | Marker drag end. | |
onMarkerDragStart? | (id, location) => void | Marker drag start. | |
onMarkerPress? | (id) => void | Tap on marker. | |
onMyLocationButtonPress? | () => void | Tap on the My-Location button. | |
onMyLocationPress? | (location) => void | Tap on the blue My-Location indicator. | |
onPoiPress? | (placeId, name, coordinate) => void | Tap on POI. | |
onPolygonPress? | (id) => void | Tap on polygon. | |
onPolylinePress? | (id) => void | Tap on polyline. | |
polygons? | RNPolygon[] | Polygons. See RNPolygon. | |
polylines? | RNPolyline[] | Polylines. See RNPolyline. | |
trafficEnabled? | boolean | false | Enables traffic layer. |
transitEnabled? | boolean | false | Enables transit layer. |
uiSettings? | RNMapUiSettings | UI and gesture settings. See RNMapUiSettings. | |
urlTileOverlays? | RNUrlTileOverlay[] | URL tile overlays. See RNUrlTileOverlay. | |
userInterfaceStyle? | RNUserInterfaceStyle | Overrides OS UI mode. See RNUserInterfaceStyle. Remarks 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. |