mapbox / mapboxgl-jupyter

Use Mapbox GL JS to visualize data in a Python Jupyter notebook
MIT License
661 stars 136 forks source link

Add hexbin visualization type #146

Open ryanbaumann opened 5 years ago

ryanbaumann commented 5 years ago

See a library fork that introduced hexbin visualizations. We should add this to Mapboxgl-Jupyter.

https://github.com/mapbox/mapboxgl-jupyter/commit/3db35ec86f2800c391cc2ca84b2be738dfd1ff09 cc/ @dakoop

samirak93 commented 5 years ago

Hi. Any idea on when this would be added? Thank you. :)

ryanbaumann commented 5 years ago

@samirak93 Hi! This would be easiest to add using a deck.gl layer, like this example: https://bl.ocks.org/ryanbaumann/f4a2e6970eedd1948aca182d0f184968.

I'm not actively developing this feature, but it should be straightforward to add using the approach referenced above if you want to take a stab at a PR.

nanodan commented 5 years ago

You can easily do this with the current choropleth visualization and h3 library.

ryanbaumann commented 5 years ago

Excellent suggestion @nanodan - would you be willing to share an example notebook or create a PR to add your example? Thank you!

nanodan commented 5 years ago

@ryanbaumann Sure I'll do a PR with an example notebook.