git clone [email protected]:aws-amplify/amplify-js.git
git checkout geo/new-config
yarn build
cd packages/geo
yarn link
cd packages/core
yarn link
git clone [email protected]:maplibre/maplibre-gl-geocoder.git
yarn link
-- Go to amazon-location-service-poc-amplify
yarn link "maplibre-gl-geocoder
yarn link "@aws-amplify/geo"
yarn link "@aws-amplify/core"
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Note: You need aws-exports.js file in the source directory created through amplify-cli.
- Update
App.js
line 19,20 to create new devices. - Double click anywhere on the map to send that point coordinates as device location for device 1
- Shift + Double click anywhere on the map to send that point coordinates as device location for device 2
- The app comes with default three geofences showed on the bottom left. Click on any to zoom on the map.
- Use device location simulation to place the device inside the geofence to trigger a geofence event.
- Geofence events are shown on the web console.
Command + click anywhere in the map to show the address of that location.
Type search text on the top-left search bar and click on one of the results to show on the map.