UserLocation¶
UserLocation¶
props¶
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| animated | bool |
true |
false |
Whether location icon is animated between updates |
| renderMode | enum |
'normal' |
false |
Rendermode of user location icon.One of "normal", "custom"."custom" must be of type mapbox-gl-native components |
| visible | bool |
true |
false |
Whether location icon is visible |
| onPress | func |
none |
false |
Callback that is triggered on location icon press |
| onUpdate | func |
none |
false |
Callback that is triggered on location update |
| minDisplacement | number |
0 |
false |
FIX ME NO DESCRIPTION |
| children | any |
none |
false |
Custom location icon of type mapbox-gl-native components |
methods¶
setLocationManager({running})¶
Whether to start or stop the locationManagerNotice, that locationManager will start automatically wheneither onUpdate or visible are set
arguments¶
| Name | Type | Required | Description |
|---|---|---|---|
{running} |
n/a |
Yes |
undefined |
needsLocationManagerRunning()¶
If locationManager should be running
arguments¶
| Name | Type | Required | Description |
|---|---|---|---|
For any queries and support, please contact:
Email us at apisupport@mappls.com
Support
Need support? contact us!
@ Copyright 2025 CE Info Systems Ltd. All Rights Reserved.
Terms & Conditions | Privacy Policy | Supplier Sustainability Policy | Health & Safety Policy | Environmental Policy & CSR Report
Customer Care: +91-9999333223
