Skip to main content

UserLocation

Props​

children​

Children to render inside the UserLocation Annotation, e.g. CircleLayer, SymbolLayer

Type: ReactNode

Required: No

animated​

Whether the UserLocation Annotation is animated between updates

Type: boolean

Required: No

accuracy​

Render a circle which indicates the accuracy of the location

Type: boolean

Required: No

heading​

Render an arrow which indicates direction the device is pointing relative to north

Type: boolean

Required: No

minDisplacement​

Minimum delta in meters for location updates

Type: number

Required: No

onPress​

Event triggered on pressing the UserLocation Annotation

Type: () => void

Required: No