MapViewProps
MapViewProps =
object
Defined in: src/ExpoArcgis.types.ts:135
Props for the <MapView> host component.
Properties
Section titled “Properties”
optionalgrid?:GridConfig|null
Defined in: src/ExpoArcgis.types.ts:150
Coordinate-grid overlay (MGRS / UTM / USNG / latitude-longitude). null / omitted = none.
locationDisplay?
Section titled “locationDisplay?”
optionallocationDisplay?:LocationDisplay
Defined in: src/ExpoArcgis.types.ts:140
Device-location display. When set, the view shows the device’s GPS location.
onLocationChange?
Section titled “onLocationChange?”
optionalonLocationChange?: (event) =>void
Defined in: src/ExpoArcgis.types.ts:148
Called on each device-location update (requires locationDisplay).
Parameters
Section titled “Parameters”nativeEvent
Section titled “nativeEvent”Returns
Section titled “Returns”void
onMapLoaded?
Section titled “onMapLoaded?”
optionalonMapLoaded?: (event) =>void
Defined in: src/ExpoArcgis.types.ts:142
Called once the map has finished loading successfully.
Parameters
Section titled “Parameters”nativeEvent
Section titled “nativeEvent”Returns
Section titled “Returns”void
onMapLoadError?
Section titled “onMapLoadError?”
optionalonMapLoadError?: (event) =>void
Defined in: src/ExpoArcgis.types.ts:144
Called if the map fails to load (e.g. missing or invalid API key).
Parameters
Section titled “Parameters”nativeEvent
Section titled “nativeEvent”Returns
Section titled “Returns”void
onTap?
Section titled “onTap?”
optionalonTap?: (event) =>void
Defined in: src/ExpoArcgis.types.ts:146
Called when the user taps the map.
Parameters
Section titled “Parameters”nativeEvent
Section titled “nativeEvent”Returns
Section titled “Returns”void
style?
Section titled “style?”
optionalstyle?:StyleProp<ViewStyle>
Defined in: src/ExpoArcgis.types.ts:136
viewpoint?
Section titled “viewpoint?”
optionalviewpoint?:Viewpoint
Defined in: src/ExpoArcgis.types.ts:138
Animates the view to this viewpoint whenever the value changes (runtime camera control).