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 thatstops
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 ourstops
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