Windy Community
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    • Register
    • Login

    Bug with displaying track round the world

    Bug Reports
    2
    3
    1.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • andrzej.kopytkoA
      andrzej.kopytko | Premium
      last edited by

      Please see the link https://www.asiapajkowska.pl/tracking/
      Step to reproduce:

      1. Move map to west and you see first part of track
      2. Move map to east more then180 degreese and move map

      Tell me what is best practice to properly display a track of world
      Regards

      1 Reply Last reply Reply Quote 0
      • siimS
        siim
        last edited by

        It is not Windy bug.

        That is how Leaflet map handles antimeridian.

        Workaround is to split polyline at -179.9 & +179.9 deg.
        For best visualt result make 3 polylines.

        One between longitudes -179.9 ... + 179.9
        "Ghost 1" -270 ... -180.1
        "Ghost 2" +180.1 ... + 270

        1 Reply Last reply Reply Quote 1
        • andrzej.kopytkoA
          andrzej.kopytko | Premium
          last edited by andrzej.kopytko

          thanks Siim.
          I can't understand idea of ghosts. Could you explain it?

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
          NodeBB & contributors, OSM & contributors, HERE maps
          Terms of Use     Privacy Policy