/fcsc-map

Primary LanguageJavaScript

Custom Markers example

Initialize a map with custom map markers based on geoJson data which displays an alert detail when clicked.

Demo gif

Run it

git clone https://github.com/mapbox/mapbox-react-examples.git

cd mapbox-react-examples/markers-custom
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