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: segment that goes through the antimeridian should be straight #692

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

Comments

@IKupriyanov-HORIS
Copy link
Collaborator

IKupriyanov-HORIS commented Feb 13, 2023

from lets_plot import *
LetsPlot.setup_html()
data = {
    'lon': [-73.7997, 124.0012],
    'lat': [80.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": [
      80.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\">\u00a9 Lets-Plot</a>, map data: <a href=\"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": 80.6408,
      "x": 124.0012,
      "y": 1.3256,
      "color": "white"
    }
  ],
  "metainfo_list": []
}

image

@IKupriyanov-HORIS IKupriyanov-HORIS self-assigned this Feb 13, 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