Add a data overlay to a map via React and use controls to visualize it differently. Each country's data will be displayed in an alert on-click.
git clone https://github.com/mapbox/mapbox-react-examples.git
cd mapbox-react-examples/data-overlay-hover
npm install
npm start
open http://localhost:3000/
mapboxgl.accessToken = // YOUR_API_KEY_HERE
Replace the API key in src/Map.js
.
Runs the app from http://localhost:3000