Geolocation
The geolocation control lets you set the map to wherever your users are, if they give permission. This requires HTTPS, but Mapster also ships with a less-accurate geolocation using IP if you don’t want to have to ask users for permission.
There are quite a few options for the geolocator, including:
- Setting the user location on map load
- Turning on high-accuracy location (most effective in mobile)
- Showing an accuracy circle
- Show the direction the user is pointing (user heading)
- Move the map with the user (user tracking)
There is also an option to use geolocation by IP, but this requires your website to accept http requests since it uses a free tier of IP-API.com.