This is a quick and hacky port to jsx/js of the react-mapbox-gl demos which are written in typescript.
Clone this repo and install it's dependencies
git clone git@github.com:scottocorp/test-mapboxgl.git
cd test-mapboxgl
npm install
Create a file in the top level directory called .env
and copy the contents of .env.template
into it. For now, assign the value development
to NODE_ENV
and your mapbox key to MAPBOX_KEY
npm run dev
Then browse localhost:3002