grafana / worldmap-panel

Worldmap panel plugin for Grafana 3.0 that can be overlaid with circles for data points.
MIT License
311 stars 199 forks source link

Plotting longitude and latitude values on the map #66

Open jadegraaf opened 7 years ago

jadegraaf commented 7 years ago

I have a time series of longitude and latitude values in a influxDB (I think), how do I plot those on a map as dots? The readme doesn't really explain this as far as I can understand it.

This is my first time using Grafana for some data visualisations using an Arduino + gps setup.

luvpreetsingh commented 7 years ago

@oostcoast same here, what have you tried since now?

minus7 commented 7 years ago

From my understanding, plotting individual points is not supported; I was looking for that as well. It seems to only support showing aggregates (per country/geohash)

samhatchett commented 7 years ago

this looks like a duplicate of #38

luvpreetsingh commented 7 years ago

I think the support for the trackmap plugin is not provided by grafana yet.

luvpreetsingh commented 7 years ago

@oostcoast this might help you http://stackoverflow.com/questions/39154884/grafana-worldmap-panel-with-influxdb-doesnt-show-points

daniellee commented 7 years ago

@oostcoast maybe the trackmap plugin is more what you are looking for?

Redferne commented 6 years ago

Please revisit this again. Displaying points on the map from a time series using Latitude and Longitude would be awesome. Trackmap development seems to be discontinued. Are there other plugins supporting plotting positions on a map?

samhatchett commented 6 years ago

I developed https://github.com/CitiLogics/citilogics-geoloop-panel to render GEOJSON features and animate them using Influx data. May not be exactly what you’re after, but just in case.

jhormigo commented 6 years ago

It'd be just great that any of the map plugins could use traditional GeoPoints as well as GeoHashes...

It'd be very useful to plot paths/tracks of a vehicle or any other item over time

ghost commented 6 years ago

Has any progress been made on this? Would be super slick to just be able to plot points via Longitude / Latitude

kylios commented 6 years ago

I submitted this pull request: https://github.com/grafana/worldmap-panel/pull/144

It does the trick for me. I have a number of lat/lon points coming into my InfluxDB from a GPS, and I'm able to plot them on the map without converting them to geohashes at any point. Feel free to try it out and see if it works for you too.

jhormigo commented 6 years ago

Thanks @kylios, hoping to see the merge very soon too.

MGendron commented 6 years ago

Hey @kylios. I have very similar need to what you did with the worldmap-panel. I'm trying to show ships position on the map with lat, long coordonates. So i pulled your version from Git, rename the plugin and added it to my Grafana server. I configured the query like you shown in the pull conversation but nothing show up in the map... what are your map options? geohash, countries, table?

Thanks for your help

image

image

kylios commented 6 years ago

Hi @MGendron , I'm pretty sure I was just using all the default settings for everything. I'll try to check when I get home from work later.

Cheers

kylios commented 6 years ago

Hey @MGendron , did you get this to work? I set my location data to table and aggregation to total. Here are my settings, and I'm seeing points on the map that correspond with the locations in my database:

2018-06-22-114559_1964x1083_escrotum 2018-06-22-114652_1960x1137_escrotum

Pantek59 commented 6 years ago

Hi @kylios I am trying to plot temperature data from a moving sensor onto the world map, so I guess your solution is exactly what I need. However, I cannot get it to work. :( I provide three fields in table format called Time, Value, and geohash via my self-made data-source plug-in and I'm using the following world map options:

selection_022

However, only one of the over 1300 measurements is shown on the world map, the first one. Obviously, I must have done something wrong. Could you give me a hint?

Thanks a lot!

Pantek59 commented 6 years ago

Mystery solved. For some reason the panel is setting maxDataPoints to 1, which results in one dot only. :) Overriding this, solved my problem.

peirix commented 5 years ago

@Pantek59 How did you override this? I can't find any option for this anywhere.

Pantek59 commented 5 years ago

@Pantek59 How did you override this? I can't find any option for this anywhere.

I manually set maxDataPoints to a higher number than 1 before querying the data source, using the maxDataPoints value.