trafficonese / leaflet.extras

Extra functionality for leaflet R package.
https://trafficonese.github.io/leaflet.extras/
GNU General Public License v3.0
216 stars 74 forks source link

Add hexbin? #63

Closed happyshows closed 8 months ago

happyshows commented 7 years ago

Hi,

Just curious, is it possible to add hex bin capability to this package?

thanks.

bhaskarvk commented 7 years ago

Sure, do you know of a leaflet plugin that provides hex binning capabilities ?

happyshows commented 7 years ago

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)

bhaskarvk commented 7 years ago

Do you have example code from ggmap I can look at ?

happyshows commented 7 years ago

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

bhaskarvk commented 7 years ago

OK I found something https://jsfiddle.net/s8f4ks9m/1/. I will what I can do to support this.

ccamara commented 5 years ago

I would also love to see that feature implemented.

I've seen these resources that achieve that in leaflet + D3:

trafficonese commented 8 months ago

The d3-hexbin plugin is integrated in this repo https://github.com/trafficonese/leaflet.extras2