Bug with displaying track round the world
andrzej.kopytko last edited by
Please see the link https://www.asiapajkowska.pl/tracking/
Step to reproduce:
- Move map to west and you see first part of track
- Move map to east more then180 degreese and move map
Tell me what is best practice to properly display a track of world
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
andrzej.kopytko last edited by andrzej.kopytko
I can't understand idea of ghosts. Could you explain it?