In this step we style our data using one of its properties, crash_type
. Notice that we do this by adding stops
to our style configuration, and that the size of our circles transitions smoothly as we zoom in and out.
Change the stop values for the 'circle-radius'
property. Remember that stops
accepts an array of arrays, where each inner array has a value for zoom level and a value for the circle radius. What happens if we add more than two arrays to our stops
array?
Try adding a popup that displays when mousing over a crash location: https://www.mapbox.com/mapbox-gl-js/example/popup-on-hover/
Built with blockbuilder.org
forked from clhenrick's block: ischool-geo-viz-template
https://d3js.org/d3.v3.min.js
https://api.tiles.mapbox.com/mapbox-gl-js/v0.43.0/mapbox-gl.js