var geolocate = new mapboxgl.GeolocateControl({
positionOptions: {
enableHighAccuracy: true
},
trackUserLocation: true
});
map.current.addControl(geolocate);
map.current.on('load', function() {
// geolocate.trigger(); //<- Automatically activates geolocation
});
[ React, mapboxgl-js ] - Locating the user works (not so accurate tho) on PC. The image shown above is from android mobile device. I've tested it both on Chrome and DuckDuckGo. What may be the reason of this behavior. Location is turned on, the site is allowed to use it, so what can I do about it