leafmap icon indicating copy to clipboard operation
leafmap copied to clipboard

pmtiles layer clashes with some drawing tools

Open cboettig opened this issue 2 months ago • 1 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...

cboettig avatar May 01 '24 14:05 cboettig