Locate the user
Geolocate the user and then track their current location on the map using the GeolocateControl.
---
title: Locate the user
description: Geolocate the user and then track their current location on the map using the GeolocateControl.
options:
zoom: 3
center: [ -96, 37.8 ]
style: https://styles.trailsta.sh/osm-liberty.json
controls:
- type: GeolocateControl
options:
positionOptions:
enableHighAccuracy: true
trackUserLocation: true
---