MSP is a Grafana (>= 7.0) panel plugin for selecting features (like a point or an area) on a geographic map.
Why yet another map panel for Grafana when there are already so many? Most map panels are visualizing data on a map for monitoring purposes. Instead I needed a map panel for selecting geographic features that would capture the current selection as a dashboard variable in order to update the data shown in other panels (think selecting a sensor from a map and automatically updating a timeseries graph with its measurements). I couldn't find a panel that would do this, so I hacked Track Map Panel to do what I needed.
- Background map from a configurable tile server (see panel parameter Tileserver url).
- Draws GeoJSON Points, Polygons and Multipolygons on top of the map.
- Size for point markers as well as colors for polygons are configurable through panel parameters.
- Clicking on a feature sets the dashboard variable selected to the corresponding id value.
- Clone this repository into the
plugins
directory of your Grafana installation - Restart Grafana and find the panel under your available panel visualizations.
Alternatively, you can run Grafana inside a Docker container and mount the repository to /var/lib/grafana/plugins/map-select-panel
.
- Based on Track Map Panel
- Using Grafana Toolkit
- Icon made by Freepik from Flaticon
The MIT License (MIT)