leaflet.extras
leaflet.extras copied to clipboard
Add hexbin?
Hi,
Just curious, is it possible to add hex bin capability to this package?
thanks.
Sure, do you know of a leaflet plugin that provides hex binning capabilities ?
I'm not sure if there's native plugin available. I was searching for this capability today since ggmap can do it (without the interactive capability that leaflet provides)
Do you have example code from ggmap I can look at ?
It's been a while and I couldn't find the link, here is something similiar: http://unconj.ca/blog/custom-hexbin-functions-with-ggplot.html
OK I found something https://jsfiddle.net/s8f4ks9m/1/. I will what I can do to support this.
I would also love to see that feature implemented.
I've seen these resources that achieve that in leaflet + D3:
- http://bl.ocks.org/tnightingale/4668062
- https://github.com/Asymmetrik/leaflet-d3
The d3-hexbin plugin is integrated in this repo https://github.com/trafficonese/leaflet.extras2