This sample application shows how to use the Lattice gRPC SDK for Javascript to display Entity position's as markers on a map. It uses the following dependencies to achieve this:
Connect RPC
- To make the gRPC+Web requestsMaterial UI
- For styling and basic componentsReact
- UI FrameworkReact Leaflet
- A React wrapper around the Leaflet open-source Javascript map libraryReact Leaflet MarkerCluster
- Clusters Leaflet markers.
This sample app requires that you have:
git clone https://github.com/anduril/sample-app-entity-map-visualizer
cd sample-app-entity-map-visualizer
You now need to provide the sample application with the endpoint to get data from. To do so please create a .env
file at the root of this project folder and populate it with:
VITE_BEARER_TOKEN=""
VITE_BASE_URL=""
Please contact your Anduril representative if you need assistance with populating these values.
npm install
npm run dev
In the terminal window, open the local link to view the application. You should now see the application in your web browser.
To learn more about the Lattice SDK, please visit our documentation site.
For support with this library please file an issue or reach out to your Anduril representative.