Retrieval of geomap current view and zoom level or current map bounds

Hello, I am using the geomap panel and i want to somehow calculate the mean of my data within the current view of my geomap (if on my current view I see 6 data points, i want the mean of those even if there are more data points in the whole map). To do that I would need to retrieve the current view location + current zoom level and calculate the bounds. Alternatively, I would need to retrieve the current map bounds in my view.

Is there a way to retrieve such data? I have looked up through the geomap docs and the internal variables of grafana and I can’t seem to find anything.

welcome @vagosmitikas

You cant find such thing because geomap is not at the level yet.

But maybe it is something that can be done using Business Text plugin with leaflet.js

I have seen that the functionality isn’t there. So there is no access to the functions that do that internally. (There must be something internally since you can set current view as default view in a geomap visualization).