Skip to content

Instantly share code, notes, and snippets.

@DannyDelott
DannyDelott / jsbin.js
Last active December 8, 2017 22:30
map.setStyle instead of addLayer/addSource
/****************************************************************
* Setting root-level styles *
* See: https://www.mapbox.com/mapbox-gl-js/style-spec/#root *
* JSBIN: https://jsbin.com/qazosufoge/1/edit?js,console,output *
****************************************************************/
mapboxgl.accessToken = 'pk.eyJ1IjoiaGVsbG8tY2EiLCJhIjoiY2lyaTdmdjNwMDF5eWc2bnJzM29rajAycyJ9.V-d5lBQ8iQ_n-vpvJ_RSIA';
var statesSource = {
'type': 'geojson',
src/
components/
TokenIcon.tsx
hooks/
usePNLCards.ts
pages/
layouts/
utils/
-----------------------