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.
'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?Built with blockbuilder.org
forked from clhenrick's block: ischool-geo-viz-template
forked from clhenrick's block: ischool-geo-viz-02
Updated missing url https://cdnjs.cloudflare.com/ajax/libs/Turf.js/2.0.2/turf.min.js to https://cdnjs.cloudflare.com/ajax/libs/turf.js/2.0.2/turf.min.js
https://d3js.org/d3.v3.min.js
https://api.tiles.mapbox.com/mapbox-gl-js/v0.35.0/mapbox-gl.js
https://cdnjs.cloudflare.com/ajax/libs/Turf.js/2.0.2/turf.min.js