Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 898 Bytes

File metadata and controls

15 lines (8 loc) · 898 Bytes

Amazon Location Service Example - React.js

Getting started

  1. Install dependencies using npm install

  2. Follow steps to create an Amplify project and enable Amazon Location Service permissions

  3. Create a map in the Amazon Location Service console and replace <MAP_NAME> with the name of the one you created in src/index.tsx on line 19.

  4. Start the app using npm start

Important notes

  • mapbox-gl@^2 and [email protected] are NOT compatible with Amazon Location Service, as they require a Mapbox API key. This project uses maplibre-gl^1.0.0 and react-map-gl@^7.0.x, the latter is a new version that is library agnostic and allows to specify which map library to use.