This example demonstrates how to use react-map-gl
with
MapLibre GL JS, Amazon Location
Service, and AWS Amplify.
See src/index.tsx
.
See package.json
.
- Install the Amplify CLI:
npm install -g @aws-amplify/cli
- Install project dependencies:
npm install
- Create a new Amplify project environment:
amplify init
- Create Auth and Geo resources:
amplify push
To clean up all resources created for this application, run the following:
amplify delete
This project uses CRACO to alias react-map-gl
's Mapbox GL
dependency to MapLibre GL JS, as react-map-gl
depends on mapbox-gl@^2
by default, which is NOT compatible with Amazon Location Service, as it requires a Mapbox API
key. See craco.config.js
to see how the aliasing works.
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.