pR0Ps / grafana-trackmap-panel

A panel for Grafana that visualizes GPS points as a line on an interactive map
https://grafana.com/plugins/pr0ps-trackmap-panel
Apache License 2.0
137 stars 61 forks source link

Route crossing the dateline #48

Closed DBREngineer closed 3 years ago

DBREngineer commented 3 years ago

Hello, I have a route that crosses the dateline. The plugin draws a line across the screen. Is there any way to prevent this?

Thanks for your support! grafik

pR0Ps commented 3 years ago

This is due to how Leaflet (the map rendering library) works. It may be able to be worked around in the plugin by drawing 2 lines as detailed here: https://stackoverflow.com/a/65870755 .

That would only remove the horizontal line though, not properly render it wrapping around.