Slippymapper application

Here I used slippymapper to visualize the crime incidents in Manhattan of one day.

Code:

import spatialpixel.mapping.slippymapper as slippymapper
import csv
def setup():
size(1000,800,P2D)
global nyc,marker

nyc = slippymapper.SlippyMapper(40.775070, -73.970252, 12, "carto-dark",width,height)

with open('data.csv') as f:
reader = csv.reader(f)
header = reader.next()

for row in reader:
latitude = float(row[6])
longitude = float(row[7])
nyc.addMarker(latitude,longitude)

nyc.render()

def draw():
background(255)
nyc.draw()
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.