Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pmtiles layer clashes with some drawing tools #732

Open
cboettig opened this issue May 1, 2024 · 1 comment
Open

pmtiles layer clashes with some drawing tools #732

cboettig opened this issue May 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@cboettig
Copy link

cboettig commented May 1, 2024

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 cboettig added the bug Something isn't working label May 1, 2024
@cboettig
Copy link
Author

cboettig commented May 1, 2024

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant