pmtiles layer clashes with some drawing tools
cboettig opened this issue · 3 comments
Environment Information
- leafmap version: 0.31.9
- Python version: 3.10.12
- Operating System: ubuntu 22.03
Description
- The polygon draw tool no longer works when we add a pmtiles layer to the leafmap. (nothing happens when we click to draw points).
- The bounding box and circle tool still work, but with a weird bug in which the most recently added pmtiles layer moves as we draw.
What I Did
Here's a quick leafmap-rendered html that illustrates this problem: https://data.source.coop/cboettig/fire/fire-pmtiles.html, source code at: https://data.source.coop/cboettig/fire/map.py, though I believe this occurs on any leafmap map that uses add_pmtiles.
This is possibly another upstream problem, I can try following up with folium-pmtiles...
trying to work up a pure folium-pmtiles example to report but actually don't see how to turn on the drawing toolbar in pure vanilla folium...
@cboettig I am excited about the new maplibre mapping backend. It has a lot of potentials.
https://leafmap.org/notebooks/92_maplibre/
I hope the PMTiles support can be added soon.
eoda-dev/py-maplibregl#55
The new MapLibre backend now supports PMTiles.
https://leafmap.org/notebooks/93_maplibre_pmtiles