leaflet.extras icon indicating copy to clipboard operation
leaflet.extras copied to clipboard

Add hexbin?

Open happyshows opened this issue 8 years ago • 6 comments

Hi,

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

thanks.

happyshows avatar Feb 14 '17 15:02 happyshows

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

bhaskarvk avatar Feb 14 '17 17:02 bhaskarvk

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)

happyshows avatar Feb 14 '17 20:02 happyshows

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

bhaskarvk avatar Jul 19 '17 17:07 bhaskarvk

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

happyshows avatar Jul 19 '17 17:07 happyshows

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

bhaskarvk avatar Jul 19 '17 17:07 bhaskarvk

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

ccamara avatar Apr 21 '19 21:04 ccamara

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

trafficonese avatar Mar 06 '24 21:03 trafficonese