Map Widget - Address

Determine and Display Address based on a Point on the Map

The example demonstrates interaction with the formcycle map widget, displaying location information, and adding/removing markers (points).

 

Here's a summary of the functionality:

  1. The map is initialized and responds to a click event.
  2. Upon clicking the map, all markers except the last one are removed, and the coordinates (latitude and longitude) of the last point are displayed.
  3. The `showLocations` function asynchronously retrieves address data for each marker from an API and displays it in a popup on the map.
  4. Functions are provided to show and hide a loading screen while location data is being retrieved.
  5. Error handling is implemented in case fetching address data fails.
Enable JavaScript to see the sample code
powered by XIMA® formcycle