Skip to content

mayadomi/arcgis-and-react

Repository files navigation

React + TypeScript + Vite + ArcGIS Maps SDK for JS

This template provides a rough and ready rudimentary example of how to use ArcGIS Maps SDK for JS with React and Typescript to display a simple map with points.

Getting setup

Clone the repo and then run npm install to install the dependencies.

The ArcGIS SDK is huge and will take a while.

Run locally by npm run dev and you should see an interactive map and table.

Data

The point data is mocked JSON for random location in the middle of WA desert.

Other Learnings/Notes/Resources

Helpful documentation: https://developers.arcgis.com/javascript/latest/es-modules/

Samples from ESRI: https://github.com/Esri/jsapi-resources/tree/main/esm-samples/jsapi-esm-cdn

Prolific/very knowledgeable developer: https://odoe.net/blog/arcgis-jsapi-build-tips