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

Measure distances and area tool bugging? #311

Closed
PennyJClarke opened this issue Nov 18, 2022 · 3 comments
Closed

Measure distances and area tool bugging? #311

PennyJClarke opened this issue Nov 18, 2022 · 3 comments

Comments

@PennyJClarke
Copy link

The measure distances and area tool appears to have a bug when used in Jupyter notebook, has anyone else experienced an issue?

When I click on the map to begin a measurement the screen shifts on each click? This video demonstrates the issue:

Media7.mp4

This error occurs on the basemap, without having added additional layers, ruling out a projection issue.
I also created a new environment containing only Leafmap, to confirm it was not a package conflict, and the error still occurs.

The use of the measure tool is integral to my use of Leafmap, I thank you for any time, support and guidance you can offer.

@giswqs
Copy link
Member

giswqs commented Nov 18, 2022

This is likely an ipyleaflet issue. Try out the code example below to see if you have the same issue.

https://ipyleaflet.readthedocs.io/en/latest/controls/measure_control.html

@PennyJClarke
Copy link
Author

Thank you Qiusheng for suggesting I check the above example code. You are correct, that the error is stemming from ipyleaflet. This is very helpful.

I have raised an issue on the ipyleaflet github issues page, however, based on your expertise, could offer any guidance on why this may be occurring and if it is a simple bug to fix? Thank you for your guidance and support.

@giswqs
Copy link
Member

giswqs commented Nov 23, 2022

Closing this one since the bug has been reported at jupyter-widgets/ipyleaflet#1076. There is not much I can do about this. As a workaround, you can try the folium backend using import leafmap.foliumap as leafmap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants