grafana / worldmap-panel

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

Control zoom using query parameters #258

Open radu2501 opened 4 years ago

radu2501 commented 4 years ago

Hello, I am wondering if it is possible to control the initial zoom (coordinates and zoom level) using query parameters when embedding the panel. For example, if a user selects a location from a dropdown (outside of Grafana), I would like to be able to zoom to that location by controlling the "src" attribute of the iframe (or by some other means, if possible). I have tried using $__variables, but it did not work.

Thank you!

amotl commented 4 years ago

Dear Radu,

within our fork [1,2], we added the "Fit to data" zoom feature, which might help you along. We are open to add additional features there. For that purpose, you might want to open an issue at [1].

With kind regards, Andreas.

[1] https://github.com/panodata/grafana-map-panel [2] https://community.panodata.org/t/grafana-map-panel/121