One thing that strikes me particularly about Berkeley is how crime-intensive it is in spite of being the most liberal, relatively densely populated and student-centric cities in the U.S. Therefore, to get a better sense of the crime type, I used the leaflet to make a web map of different types of crime in Berkeley. I pulled the CSV file from Open Berkeley, cleaned it by pulling out the coordinates and type of crime, and finally converted it to the GeoJSON file. The geojson was then plugged within leaflet to make the following web map.
The challenging part of the exercise was to find 18 different colors to code the different kinds of crimes in Berkeley. Most colors aren’t vastly unique – which is why the color ‘palette’ for my map might not be as tasteful as I’d like it to be.