Use Case: Displaying the Address of the Selected Point on the Map

When a user clicks on a point on the map, the physical address corresponding to those coordinates should be retrieved by the system and displayed in a Text field.

Application Flow:

  • Go to the UI Design module.
  • Drag and drop the following elements from the Elements panel:
    • Map → Allows the user to select a location by clicking.
    • Label → The area where the address information will be displayed. (labelAddress)
    • Button → Button that starts the ‘Get Address’ process.

Action Flow and Configuration

  1. Adding an Action to the ‘Get Address’ Button
    • Select the button → +ADD ACTION → OnClick → Geolocation → Add the Location Address Of Coordinates action.
  2. Configure the Parameters
    • Latitude
    • Longitude
  3. Display Result (with Set Value action)
    • Immediately after, as a second action:
    • Set Value →
      • Target
      • Value

When the user clicks on any point on the map and then presses the ‘Get Address’ button:

  • The coordinates of the point clicked on the map are obtained.
  • These coordinates are converted to a physical address with the Location Address Of Coordinates action.
  • The resulting address information is displayed to the user via the relevant label element in the application interface.