grafana / grafana

The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
https://grafana.com
GNU Affero General Public License v3.0
61.5k stars 11.74k forks source link

Geomap: Fit to data not working following recent update #89777

Open lucyjstephenson opened 1 week ago

lucyjstephenson commented 1 week ago

What happened?

Maps will now stay zoomed out to the baselayer instead of zooming to fit data as it used to with the below settings: image I assume this has something to do with the update allowing keyboard interaction with maps for zooming in and out.

What did you expect to happen?

You would expect the map to zoom to just fit data in the layers we have added to the map

Did this work before?

Yes, Grafana 11 worked

How do we reproduce it?

  1. Have a Geomap panel with a baselayer and at least one other layer - our layer is a 'route' type.
  2. Configure the settings as shown above to fit to data

Is the bug inside a dashboard panel?

No response

Environment (with versions)?

Grafana: 11.1 OS: Browser: Chrome

Grafana platform?

None

Datasource(s)?

No response

lucyjstephenson commented 1 week ago

From further investigation it looks like the feature of zooming in/out using the keyboard doesn't work either. It zooms out to around 1.2x the whole map of the world but will not zoom in.

jutkko commented 1 week ago

@lucyjstephenson Thanks for reporting, I am seeing this problem as well.

jutkko commented 1 week ago

Looks like this issue should be fixed in the next patch release, it's already merged here https://github.com/grafana/grafana/pull/89248.

lux4rd0 commented 1 week ago

I just discovered the same after upgrading to Grafana v11.1.0 (5b85c4c2fc) - thanks for the quick upcoming fix!!