# 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="https://4212634705-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPwUVbLJRMHVonmvO4xZ8%2Fuploads%2FcCPFm43parqMeRi6nMZU%2FScreenshot%202025-02-03%20at%2017.27.03.png?alt=media&#x26;token=76855fb3-c0db-4bda-af00-52fac6cb67c5" 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="https://4212634705-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPwUVbLJRMHVonmvO4xZ8%2Fuploads%2F79iaWYUZptOrfa29jawI%2FScreenshot%202025-02-03%20at%2017.27.52.png?alt=media&#x26;token=9d8ac5c2-add5-4ec9-b82b-c968509d2ef0" 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="https://4212634705-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPwUVbLJRMHVonmvO4xZ8%2Fuploads%2F1XKSrV5Sa05hjytplytB%2FScreenshot%202025-02-03%20at%2017.33.32.png?alt=media&#x26;token=3a2f9ecb-1884-44ff-a3fe-2be3219be146" 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/>" %}
