Interative & Data-driven Styles with Mapbox GL JS
tl;dr: Mapbox GL JS feels like the future of web maps, promising
data-driven styles (e.g. a color scale) and interaction-driven styles (e.g.
:hover
). They’re still in the works as first-class features of the API, but
it’s possible–through some mild workarounds–to make them work today.
Examples with code below.