Skip to content

thaddmt/amplify-maplibre-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

Until these packages are published to npm...

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"

yarn start

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.

Simulating device location updates

  • 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

Geofence breach updates

  • 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.

Reverse geocoding

Command + click anywhere in the map to show the address of that location.

Search for POIs and addresses.

Type search text on the top-left search bar and click on one of the results to show on the map.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published