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

livemap: wrong position when path goes through the antimeridian #682

Closed
IKupriyanov-HORIS opened this issue Feb 6, 2023 · 0 comments
Closed
Assignees
Milestone

Comments

@IKupriyanov-HORIS
Copy link
Collaborator

IKupriyanov-HORIS commented Feb 6, 2023

from lets_plot import *
LetsPlot.setup_html()
data = {
    'lon': [-122.25165, 139.4130],
    'lat': [37.464958, 35.4122],
}

ggplot(data) + geom_livemap() + \
    geom_segment(
        xend=data['lon'][0], 
        yend=data['lat'][0], 
        x=data['lon'][1], 
        y=data['lat'][1], 
        flat=True)

Actual:
image

Expected:
image

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

1 participant