Skip to content
GuidesToolkitAPI

LocationDisplay

LocationDisplay = object

Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:105

Device-location display for a <MapView>. Providing it enables location (starts the GPS).

optional autoPanMode?: LocationDisplayAutoPanMode

Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:107

How the view follows the device. Defaults to recenter.


optional showLocation?: boolean

Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:109

Whether to draw the location symbol. Defaults to true.


optional source?: "system" | { route: Geometry; speed?: number; type: "simulated"; }

Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:116

The location data source. 'system' (device GPS, the default) or a simulated source that drives the location along a route polyline — handy for testing without real movement.


optional wanderExtentFactor?: number

Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:111

How far the location can wander before the view re-pans, as a factor of the symbol size.