alexandrainst / alexandra-trackmap-panel

Grafana map plugin to visualise coordinates as markers, hexbin, ant path, or heatmap.
MIT License
78 stars 26 forks source link

How to use re-center as starting position #16

Closed Alcarin closed 3 years ago

Alcarin commented 4 years ago

First of all this plugin is fantastic. I use Antpath to track ship route, I have a dashboard variable to switch between ship, and re-center function is working good, as I change ship the map is recentered correctly to show all route. But when I first load the dashboard, the map show me the configured starting position, but I can't know where the ship could be, so starting position is meaningless for me in this situation. As I click to refresh dashboard data, re-center is triggered and route is now centered in the map. Is it possible to automatically re-centering the map at first data load instead of using configured start position?

Drazair commented 4 years ago

Hey @Alcarin, It should be using the automatically re-centering if it's on instead of the start position. This seems to be a bug if the the data loads in before the map is done initializing.

viktak commented 4 years ago

Just wanted to confirm - the same thing happens for me too. Otherwise, it's a great plugin!

CodeFunta commented 3 years ago

Hey @Alcarin , JFYI: I've pushed several PRs including centering on first position + tooltip text from data. See #29

viktak commented 3 years ago

@CodeFunta Awesome, thank you! Can't wait to see it live!

alchuk commented 3 years ago

You know, guys, there's always room for improvement. The automatic re-centering works as a charm. But it's not that convenient without automatic zoom on the track boundaries. I'm sure you can implement this feature (: Please

Alkarex commented 3 years ago

@alchuk Could you please try https://github.com/alexandrainst/alexandra-trackmap-panel/pull/37 ?