Skip to content
Guides API

MapViewProps

MapViewProps = object

Defined in: src/ExpoArcgis.types.ts:152

optional contentInsets?: MapViewInsets

Defined in: src/ExpoArcgis.types.ts:159

Reserves space at the view’s edges for UI drawn over the map — a bottom sheet, a toolbar. The map still draws full-bleed underneath; attribution and the location symbol move inside the inset area, and setViewpoint frames content to it rather than to the whole view.


optional grid?: GridConfig | null

Defined in: src/ExpoArcgis.types.ts:185

Coordinate-grid overlay (MGRS / UTM / USNG / latitude-longitude). null / omitted = none.


optional insetsViewpointAdjustment?: InsetsViewpointAdjustment

Defined in: src/ExpoArcgis.types.ts:165

How the viewpoint reacts when contentInsets change (ArcGIS 300.1). Defaults to none, the pre-300.1 behaviour. Use preserve-center when a sheet expands over the map and the feature the user was looking at should stay put.


optional locationDisplay?: LocationDisplay

Defined in: src/ExpoArcgis.types.ts:169

Device-location display. When set, the view shows the device’s GPS location.


optional onLocationChange?: (event) => void

Defined in: src/ExpoArcgis.types.ts:183

Called on each device-location update (requires locationDisplay).

LocationEventPayload

void


optional onMapLoaded?: (event) => void

Defined in: src/ExpoArcgis.types.ts:177

Called once the map has finished loading successfully.

MapLoadedEventPayload

void


optional onMapLoadError?: (event) => void

Defined in: src/ExpoArcgis.types.ts:179

Called if the map fails to load (e.g. missing or invalid API key).

MapLoadErrorEventPayload

void


optional onTap?: (event) => void

Defined in: src/ExpoArcgis.types.ts:181

Called when the user taps the map.

TapEventPayload

void


optional style?: StyleProp<ViewStyle>

Defined in: src/ExpoArcgis.types.ts:153


optional timeExtent?: { endTime: number; startTime: number; } | null

Defined in: src/ExpoArcgis.types.ts:175

Filters time-aware layers to this time window. Both values are epoch milliseconds (UTC). Pass null / omit to show all time steps (no filter). Maps to GeoView.timeExtent / MapView(timeExtent:) on both platforms.


optional viewpoint?: Viewpoint

Defined in: src/ExpoArcgis.types.ts:167

Animates the view to this viewpoint whenever the value changes (runtime camera control).