Skip to content
GuidesToolkitAPI

Compass

Compass(__namedParameters): null

Defined in: packages/expo-arcgis-toolkit/src/Compass.tsx:25

The ArcGIS Toolkit’s compass, drawn over its <MapView> or <SceneView>. It shows the heading while the view is rotated, and turns the view back to north when tapped (a scene keeps its camera’s position, pitch and roll). Place it inside the view.

<MapView style={{ flex: 1 }}>
<Compass />
</MapView>

CompassProps

null