Skip to content

This plugin extends Grafana Geomap panel with several functionalities: Support for GeoJSON shapes, Support for icons, Support for pop up visualizations of data from a specific point, Multiple layers for the different queries.

License

Notifications You must be signed in to change notification settings

ertis-research/grafana-panel-citiesmap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cities Map Panel

This plugin is a fork that fixes bugs and updates the Orchestra Cities Map plugin to the latest version.

This fork uses webpack to build the plugin and accepts as properties of a geojson a JSON, processing it and displaying its data nicely in the tooltip.

Orchestra Cities Map extends Grafana Geomap panel with several functionalities:

  • Support for GeoJSON shapes
  • Support for icons (icons supported are from FontAwesome)
  • Support for pop up visualizations of data from a specific point
  • Multiple layers for the different queries
  • A new map layer leveraging Inverse distance weighting (IDW) interpolation for scattered data points using Shepard's method.

Marker layer

IDW layer

New customization options available for the markers layer:

  • Cluster support with a lot of customization like distance and value to display
  • A fully customizable pin with the possibility to change colors, shapes and sizes
  • The possibility to select which properties to be displayed on the popup

Marker layer options

Cluster options:

  • Distance
  • Min distance

Pin Options:

  • Shape
  • Size
  • Customizable icon
  • Shadow
  • Gradient

Popup Options:

  • Display a title
  • Display the Timestamp
  • Selectable properties

Marker layer options

Options available for the IDW layer:

IDW options:

  • Weight value to be used to create the interpolation, including min and max range
  • Scale factor of the precision of the interpolation
  • Show data values over the map

Pupup Options:

  • Display a title
  • Display the Timestamp
  • Selectable properties

Marker layer options

It requires Grafana >=8.2.0

Usage with PostGis

To use the plugin with PostGis, you need either to query longitude and latitude from a stored Point, e.g.:

  • ST_X(ST_GeomFromEWKT(location_centroid)) AS \"longitude\"
  • ST_Y(ST_GeomFromEWKT(location_centroid)) AS \"latitude\"

Or query the GeoJSON shape, e.g.:

  • ST_AsGeoJSON(ST_GeomFromEWKT(location)) AS \"geojson\"

Usage with CrateDB

To use the plugin with CrateDB, you need either to query longitude and latitude from a stored Point, e.g.:

  • longitude(location_centroid) AS \"longitude\"
  • latitude(location_centroid) AS \"latitude\"

Or query the GeoJSON field, e.g.:

  • location AS \"geojson\"

What is a Grafana Panel Plugin?

Panels are the building blocks of Grafana. They allow you to visualize data in different ways. While Grafana has several types of panels already built-in, you can also build your own panel, to add support for other visualizations.

For more information about panels, refer to the documentation on Panels

Set up dev environment

See Contributing

About

This plugin extends Grafana Geomap panel with several functionalities: Support for GeoJSON shapes, Support for icons, Support for pop up visualizations of data from a specific point, Multiple layers for the different queries.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 81.4%
  • CSS 8.9%
  • Shell 7.2%
  • JavaScript 1.8%
  • Dockerfile 0.7%