jupyter-widgets / ipyleaflet

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

VectorTileLayer as a base map ? #1077

Open kraleva opened 1 year ago

kraleva commented 1 year ago

Basically a pretty straightforward question. In the JavaScript implementation, there are plugins like Tangram, which renders vector tiles using WebGL. However, if one wants to use vector tiles as a basemap on ipyleaflet side, this integration that exists in JavaScript with tangram is not possible. Is there some good workaround this issue ?

davidbrochart commented 1 year ago

Our VectorTileLayer currently uses https://github.com/Leaflet/Leaflet.VectorGrid, which has canvas and SVG renderers. If you want to use WebGL through Tangram, we would need the Tangram Leaflet layer. That would be a nice feature, do you want to try and implement it?