Skip to content

Instantly share code, notes, and snippets.

@hrecht
Last active February 7, 2017 11:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hrecht/82b6440ed3b982a6f594 to your computer and use it in GitHub Desktop.
Save hrecht/82b6440ed3b982a6f594 to your computer and use it in GitHub Desktop.
Mapbox GL JS choropleth with hover and sidebar tooltips

Choropleth example using Mapbox GL JS

Choropleth using an external geojson (DC Census Tracts by Population Change - 2000), data-driven styling, and queryRenderedFeatures to show hovered polygon's features in a sidebar tooltip.

Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment