Open parnelandr opened 9 years ago
To begin with I can add a property to the GeoJSON that expresses the regions we can use for the clustering.
Regions or TA? I think clustering is most useful at higher levels of zoom, if we do indeed opt for it, so I'm going to work on a method to give each crash its regional council (the raw data already has TA; it's trivial to add that to the GeoJSON).
Thinking critically about this, is this a good idea? Zoomed out, are we going to be hiding interesting patterns? Like which State Highways (and sections thereof) have lots of accidents? Given I'm generally not a fan of clustering, I'm possibly just being pessimistic. It might be worth trying TA quickly to see what it looks like. I think it would be great for comparing different cities, but we'll lose rural patterns.
This is probably useful: http://blog.thematicmapping.org/2012/10/mapping-new-zealand-clustering-doc-huts.html
Also useful: https://github.com/Leaflet/Leaflet.markercluster
This one is nice because it "spiderfies" at the lowest level, so that solves the problem of multiple crashes occurring at the same intersection being separated.
BTW, this example has a sweet loading bar.
http://bl.ocks.org/gisminister/10001728 This is relevant to #3 as well.
At zoom levels where more than one region can be seen, cluster current view of dots by TA.