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
- Adding an Action to the ‘Get Address’ Button
- Select the button → +ADD ACTION → OnClick → Geolocation → Add the Location Address Of Coordinates action.
- Configure the Parameters
- Display Result (with Set Value action)
- Immediately after, as a second action:
- Set 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.