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 Control longitude coordinates bug #684

Closed
giswqs opened this issue Aug 23, 2020 · 1 comment
Closed

Measure Control longitude coordinates bug #684

giswqs opened this issue Aug 23, 2020 · 1 comment

Comments

@giswqs
Copy link
Contributor

giswqs commented Aug 23, 2020

When creating a map centered in the western world (e.g., US), if users pan the map to the eastern world (e.g., China), the longitude coordinates shown on the Measure Control are incorrect. For example, it is showing 259 W (-259), but it should be 101 E.

import ipyleaflet

m = ipyleaflet.Map(center=[40, -100], zoom=4)

measure = ipyleaflet.MeasureControl(
    position='bottomleft',
    active_color='orange',
    primary_length_unit='kilometers'
)

m.add_control(measure)
m

@martinRenou
Copy link
Member

Thanks for opening an issue. That might be something to report upstream (leafletjs measure control package) as it's not really ipyleaflet that implements this.

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