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

Automatically zoom to existing points #222

Closed birdayz closed 4 years ago

birdayz commented 4 years ago

I did not find an option to have the map auto zoom to the existing points on the map. I always have to specific either the continents or lat/lng, etc from the dropdown box. Did i miss something? Doing this statically is OK for some cases, but i have a case where the data is fetched based on a Variable..since this is completely different everything, it would help to auto zoom the map. thanks !

amotl commented 4 years ago

Dear Johannes,

as far as I can see, you will find this feature in our fork at https://github.com/hiveeyes/grafana-worldmap-panel.

With kind regards, Andreas.

amotl commented 4 years ago

Dear @birdayz,

have you been able to check the "Fit to data" feature of the improved Grafana Map Panel already?

The feature is described as:

Make the map viewport automatically fit the data within its geographic boundaries using two new control options. Toggling the Fit to data option will choose an optimal center and zoom level for covering the displayed data while the Zoom radius option will optionally override that zoom level by using a fixed zoom radius.

With kind regards, Andreas.

birdayz commented 4 years ago

Yeah, i'm using that fork. thanks

ManuelBu96 commented 3 years ago

Hello, i am using Grafana 7 and the Worldmap-panel. I miss the option "Fit to data". Where can i find the option?

SamuelBachar commented 4 months ago

Automatic zoom in GeoMap with type of layer HeatMap is not working in my Grafana of version:

Grafana v10.4.2 (22809dea50)

Any help ? Fields are named correctly based on documentation here: https://grafana.com/docs/grafana/latest/panels-visualizations/visualizations/geomap/#location

I tried langitutde and longitutde as string and as numeric aswell. Not working for InfinityAPI using parsing option or UQL.