-
Install dependencies using
npm install
-
Follow steps to create an Amplify project and enable Amazon Location Service permissions
-
Create a map in the Amazon Location Service console and replace
<MAP_NAME>
with the name of the one you created insrc/index.tsx
on line 19. -
Start the app using
npm start
-
This uses CRACO to alias
react-map-gl
's Mapbox GL dependency to use MapLibre GL JS instead. Seecraco.config.js
-
mapbox-gl@^2
andreact-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.