Click the button to geolocate: find your current location. Your browser may ask your permission to provide this information to the page. This demo app doesn't send that info anywhere; but you could code your app to do something with it if you needed to. The accuracy of the geolocation will depend on the user's device.

The button has a dynamic action that runs the Report Map Action "Go to Device Location".

The region has a Dynamic Action on the geolocate event which has two Actions:

  1. Report Map Action "Set Zoom" to static value: 15
  2. Set Value: set item P12_CENTRE to JavaScript Expression:" "

Tip: Zoom to user's current location