Dash-Leaflet + Datashader. Any ideas on adding a dynamic image overlay

I’ve got a dask dataframe file that is fairly large (100M rows or so) that has lat/lon columns. I’m using this to dynamically generate a heatmap based on zoom level; similar to this. I’d prefer to use leaflet over mapbox but I can’t seem to figure out how to pass a dataframe image object to the leaflet map .I’m guessing it would be something to do with the ImageOverlay call but it seems to take static URL’s rather than image objects. The end function would be something like:

  • zoom to area
  • map bounding box is passed to datashader object
  • new image is calculated and passed back
  • image is overlaid on top of map

any ideas?