Example Usage of Location Picker Element

In this example, when the application is run, by default the location with latitude 2.219 and longitude 46.76 is selected. Clicking a button switches to the location in London with latitude 51.5072 and longitude -0.1275.

  1. Add the Location Picker element to the workspace.
  2. From the Properties panel, enter 2.219 in the Latitude field and 46.76 in the Longitude field.
  3. Select the Button element from the Elements panel and add it under the Location Picker.
  4. Click +Add Action in the button settings:
    • OnClick → UI Control → Set Value Of.
    • Select Location Picker1inComponent to Change field.
  • Select latitude in Prompt name to set field and enter 51.5072 in Value field.
  • Repeat the same for longitude and enter -0.1275 in the Value field.
  1. Test the application by clicking the Preview button.

By following this guide, you can use the Location Picker element effectively in your application.