GeoVisualization Workshop at iSchool
- 00 HTML Template
- 01 Create the Map and Load Some Data
- 02 Add Data Driven Styling to Our Layer
- 03 Add Hex Bins and a Jenks classification
- 04 Add Custom Map Controls
We'll start by creating an interactive map using MapboxGL.JS and discussing adding a custom layer using some GeoJSON data of vehicle collisions in New York City.
Next we'll style the data using a property from our GeoJSON and discuss potential issues that arise from overlapping point data.
We'll then look at one solution to aggregating point data using hexagonal binning with help from Turf.JS.
Finally we'll add some basic map controls for hiding and showing our map layers.
Viewing the Examples
In order to view the examples locally on your computer, you'll need a web server. If you have Python accessible on your command line,
cd to the root of this repo and do:
python -m SimpleHTTPServer 8000
Then open your web browser to
localhost:8000 and click one of the links above.
About the Data
Data used in this workshop comes from the NYC Open Data portal's vehicle collisions for March, 2017. The data has been processed ahead of time for the sake of simplifying the number of steps necessary to create the visualizations in this workshop.