> For the complete documentation index, see [llms.txt](https://cranford-tech.gitbook.io/beautiful-maps-mapbox/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cranford-tech.gitbook.io/beautiful-maps-mapbox/geolocation/show-the-users-current-location.md).

# Show the user's current location

You can show the current user's location on a Mapbox Map using a tracking beacon:

<figure><img src="/files/k6MX5zpDyyQlJ2IDHWOL" alt=""><figcaption></figcaption></figure>

There are a number of ways you can activate the tracking beacon:

* If you set the 'Geolocate' control on the Mapbox Map to 'yes', the user will have the opportunity to click it to start the geolocation

<figure><img src="/files/FKMpzYHTIppGec2yQgMA" alt=""><figcaption></figcaption></figure>

* You can also trigger this automatically by setting the 'Trigger on Page Load' option to 'yes'
* You can trigger the geolocation from a workflow action by using the 'Add Geolocation' action and setting the 'Trigger Automatically' field to 'yes'

<figure><img src="/files/qSDyNM82ODGmty7nLWD8" alt=""><figcaption></figcaption></figure>

### Demo app

See the '**Locate the current user (geolocation)**' section of the demo app for an example of how to implement geolocation:

{% embed url="<https://beautiful-maps-mapbox.bubbleapps.io/>" %}
