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

Hover over for details #21

Closed viktak closed 3 years ago

viktak commented 4 years ago

I was wondering if it is possible to configure the map in a way that when the mouse hovers over a track point, it shows the details (or at least the time stamp) of that point, like any other graph in Grafana does, i.e.:

grafana-hover-over-example

If it is not possible, please take this as a feature request :)

Thank you!

viktak commented 4 years ago

While at it :) can I also ask for a possibility of a small (custom) icon/image to be shown at the last point?

Imagine a live tracklog, where one can see, say, the last 24 hours, and the current position. At the moment it is not easy to see / not obvious which one the current position.

Thank you!!

bijwaard commented 3 years ago

At the moment I can see the lat/long coordinates in the tooltip, great! So there is already something showing up while hoovering;-)

Would it is possible to add a label to the tooltip. I now changed the icons to have an embedded label but that only works for two icons... It would be great if this label/id can be dynamically set from the metrics, e.g. by using the identity_id metric alias below. image

j-or commented 3 years ago

@viktak @bijwaard

For highlighting the last position, check out the Use secondary icon for last marker option that was added recently.

For labels/tooltips, try #40 that I just pushed. It adds a mouseover tooltip/label to each marker using the tooltip field from the query. It also has the option to Always show tooltips if you want the tooltips to stay open, instead of only showing them on mouseover.

bijwaard commented 3 years ago

Thanks very much, this appears to work beautifully!! image

viktak commented 3 years ago

Great updates, thank you guys! I was wondering, if there is a way to include the timestamp in the tooltip?