This component receives several input parameters:
Check for the documentation for additional information about Amazon Web Services, Amazon Localization Services, and to discover how to set up your Amazon Web Services account to start working with this component.
Important considerations:
You need to create a Map resource, a Place Index and create an Amazon Cognito Identity Pool and allow the access for unauthenticated users as was described in the previous tutorial, you should have everything ready to display the map in Outsystems using this component. Check the documentation for more information.
The map and the place index need to have the same provider (ESRI or HERE).
Be careful, Amazon Location Services coordinates works in a different way than Google maps. Amazon Location Services uses coordinates like (longitude, latitude), on the contrary than Google Maps that uses coordinates like (latitude, longitude). Amazon Location Services updated their format to match the one used in MapLibreGL Js, very useful when rendering maps, markers and popups, between other things.
The component includes a validation for invalid coordinates: Latitude should be between (-90 to 90) and Longitude between (-180 to 180).
It also includes an action to get the current location (coordinates) of the user.
There is a structure to hold marker information with the structure of Longitude and Latitude. The workflow to display a marker is the following:
The component does not currently support custom marker popups. It will be included in future versions.