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

More than one trace on the same map #13

Closed jononi closed 2 years ago

jononi commented 4 years ago

I'm using InfluxDB to get the data. Adding one query like this: SELECT mean("latitude") AS "lat", mean("longitude") AS "lon" FROM "track_rp"."location" WHERE ("device" = 'device-1') AND $timeFilter GROUP BY time($__interval) fill(none) works fine. When I add a second query: SELECT mean("latitude") AS "lat", mean("longitude") AS "lon" FROM "track_rp"."location" WHERE ("device" = 'device-2') AND $timeFilter GROUP BY time($__interval) fill(none)

I can't view both on the same map. If I disable one of them I get the other one displayed correctly. Is there a way to have 2 (or more) traces displayed concurrently?

Drazair commented 4 years ago

Hey @jononi, there currently isn't a way to have multiple queries displayed on the map at the same time.

viktak commented 4 years ago

I would also like to have this feature in the future :)

alchuk commented 3 years ago

+1 And not only multiple tracks but also some annotations next to the last pont in track so that moving vehicles could distinct from each other

bijwaard commented 3 years ago

Enabling multiple paths would also enable drawing more static paths, such as walking trails, connections between smartgrid substations, etc.

j-or commented 2 years ago

Added in https://github.com/alexandrainst/alexandra-trackmap-panel/pull/51