ui-mapbox
ui-mapbox copied to clipboard
getUserLocation() doesn't work unless showUserLocation is enabled
trafficstars
The only way to get user location is to enable showUserLocation.
In my case, I would like to show a marker instead so that if you change address in the app, the marker would be showed in a different location on the map. If you enable showUserLocation, user icon is always visible and adding a marker there makes confusion.
Any way to get user location without using the showUserLocation option?