grafana-toolbox / panodata-map-panel

Map Panel for Grafana with improved convenience, robustness and features. Friendly fork of the original Grafana Worldmap Panel. Currently not maintained, but verified to work up to Grafana 9.
https://community.panodata.org/t/grafana-map-panel/121
GNU Affero General Public License v3.0
88 stars 31 forks source link

Overlay image can now be refreshed with the dashboard #99

Closed jreyesr closed 3 years ago

jreyesr commented 3 years ago

This PR closes https://github.com/panodata/grafana-map-panel/issues/97

As requested by @falconhome in https://github.com/panodata/grafana-map-panel/issues/97#issue-894036156, this PR adds a setting that refreshes the overlay image, if enabled, on each dashboard refresh. Currently, the overlay is fetched only once, on page load, and the only way to refresh it is to reload the page with F5 or to open a new tab.

This is not an issue if the image is fixed (for example, a more updated or detailed view of the area), but it can be a problem if the overlay is updated regularly (for example, a heatmap computed from sensor data that is updated as new sensor data streams in). In this case, it is desirable to display the latest/most recent image.

The PR adds a toggle switch that forces a reload of the overlay whenever the Grafana dashboard is refreshed, either manually via the refresh button or automatically on an interval.

amotl commented 3 years ago

Thank you very much!

falconhome commented 3 years ago

Guys! Thank you all of your work it looks great! Thak you! Could you help me somebody in the build process, because in my enviroment i cannot do it. I am sorry for this, and thanks for your help! rgsd Tibor