Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Files

Latest commit

 

History

History

data-overlay-hover

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Data Overlay Hover example

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.

Demo gif

Run it

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/

Access token

mapboxgl.accessToken = // YOUR_API_KEY_HERE

Replace the API key in src/Map.js.

Runs the app from http://localhost:3000