Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 1009 Bytes

File metadata and controls

17 lines (9 loc) · 1009 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

  • This uses CRACO to alias react-map-gl's Mapbox GL dependency to use MapLibre GL JS instead. See craco.config.js

  • mapbox-gl@^2 and react-map-gl@^6 are NOT compatible with Amazon Location Service, as they require a Mapbox API key. This project pins these package versions to ^1.0.0 and ^5.0.0, respectively.