This example is based on a scenario where by default, when the application is run, the location with latitude 2.219 and longitude 46.76 is selected by default, and when a button is clicked, it navigates to the location in London with latitude 51.5072 and longitude -0.1275.
In the application, select the Location Picker element from the Elements panel and drag and drop it to your workspace. After the insertion process is complete, click on the Location Picker element.
In the Properties panel that opens, enter “2.219” in the longitude field and “46.76” in the latitude field. This location will correspond to the vicinity of France.
Next, select the Button element from the Elements panel and add it under the Location Picker. Click on the Button element and continue to adjust the button settings.
Changing the location with a click on the button:
In the button settings, click +Add Action.
Follow the stepsOnClick → UI Control → Set Value Of.
In the Action Screen screen that opens, select Location Picker1 from Component to Change field.
Select latitude in Prompt name to set field and enter “51.5072” in Value field.
Repeat the same process, this time select longitude in the Prompt name to set the field and enter “-0.1275” in the Value field.
After confirming the values you entered, run the application by clicking the "RUN" button at the top of the application and perform the test.