jupyter-widgets / ipyleaflet

A Jupyter - Leaflet.js bridge
https://ipyleaflet.readthedocs.io
MIT License
1.47k stars 361 forks source link

getTileUrl #1122

Open thomascoquet opened 1 year ago

thomascoquet commented 1 year ago

Hello,

Is it theoretically possible to pass a python function as getTileUrl in TileLayer?

This would allow to pass base64 images and to get IO control on python-side. Or even to generate dynamically images depending on tile coordinates. No need for localtileserver for example. I assume there might be some synchronization issues (threads/async?).

I am willing to help but my knowledge in python <-> js bindings in the widget ecosystem is quite limited.

Thanks, Thomas