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 if segment goes through the antimeridian #691

Closed
IKupriyanov-HORIS opened this issue Feb 13, 2023 · 1 comment
Closed
Assignees
Milestone

Comments

@IKupriyanov-HORIS
Copy link
Collaborator

from lets_plot import *
LetsPlot.setup_html()
data = {
    'lon': [-73.7997, 124.0012],
    'lat': [5.6408, 1.3256],
}

ggplot(data, ) + \
    geom_livemap(tiles=maptiles_lets_plot(theme='dark')) + \
    geom_segment(xend=data['lon'][0], yend=data['lat'][0], x=data['lon'][1], y=data['lat'][1], color='white', flat=True)
plotSpec
{
  "data": {
    "lon": [
      -73.7997,
      124.0012
    ],
    "lat": [
      5.6408,
      1.3256
    ]
  },
  "mapping": {},
  "data_meta": {},
  "kind": "plot",
  "scales": [],
  "layers": [
    {
      "geom": "livemap",
      "mapping": {},
      "data_meta": {},
      "tiles": {
        "kind": "vector_lets_plot",
        "url": "wss://tiles.datalore.jetbrains.com/",
        "theme": "dark",
        "attribution": "Map: <a href=\"[https://github.com/JetBrains/lets-plot\](https://github.com/JetBrains/lets-plot/)">\u00a9 Lets-Plot</a>, map data: <a href=\"[https://www.openstreetmap.org/copyright\](https://www.openstreetmap.org/copyright/)">\u00a9 OpenStreetMap contributors</a>."
      },
      "geocoding": {
        "url": "http://10.0.0.127:3020/map_data/geocoding"
      }
    },
    {
      "geom": "segment",
      "mapping": {},
      "data_meta": {},
      "flat": true,
      "xend": -73.7997,
      "yend": 5.6408,
      "x": 124.0012,
      "y": 1.3256,
      "color": "white"
    }
  ],
  "metainfo_list": []
}

image

@IKupriyanov-HORIS IKupriyanov-HORIS self-assigned this Feb 13, 2023
@IKupriyanov-HORIS
Copy link
Collaborator Author

Duplicate #682

@IKupriyanov-HORIS IKupriyanov-HORIS closed this as not planned Won't fix, can't repro, duplicate, stale Feb 15, 2023
@IKupriyanov-HORIS IKupriyanov-HORIS added this to the 2023Q1 milestone Feb 15, 2023
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