Skip to content

A panel for Grafana that visualizes GPS points as a line on an interactive map

License

Notifications You must be signed in to change notification settings

tomcheney/grafana-trackmap-panel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grafana-trackmap-panel

A panel for Grafana that visualizes GPS points as a line on an interactive map.

Features

  • Places a dot on the map at the current time as you mouse over other panels.
  • Zoom to a range of points by drawing a box by shift-clicking and dragging.
  • Multiple map backgrounds: OpenStreetMap, OpenTopoMap, and Satellite imagery.
  • Track and dot colors can be customized in the options tab.

Screenshots

Show current selection as a dot on the map Zoom in by selecting a range of points Chose what map to display the data on

Installation

To use this plugin, clone it into Grafana's plugin directory (you can find this path in Grafana's logs when it starts up), and build it.

To build, install npm and run the following commands in the plugin's directory:

npm install
npm run build

After building, you should now be able to select the "TrackMap" panel when adding a new panel to a Grafana dashboard.

Configuration

The plugin requires latitude and longitude measurements provided as floats in two separate fields.

The following setup has been tested using InfluxDB as a data source in the case where latitude and longitude are stored in the location table. You will have customize the query for your setup accordingly.

SELECT median("latitude"), median("longitude") FROM "location" WHERE $timeFilter GROUP BY time($interval)

About

A panel for Grafana that visualizes GPS points as a line on an interactive map

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 90.4%
  • HTML 8.9%
  • CSS 0.7%