Open mdz-doordash opened 8 months ago
This is happening with the markers layer in my data set. Worked fine previously. Broke with recent update. Fit to data no longer centers map view on specified layer, it now just zooms out to the farthest extent upon load/refresh.
Grafana 11.1.0
it should have been fixed in 11.1.1 / 11.1.2 according to this backport - https://github.com/grafana/grafana/pull/89248
however it's still broken for me when making use of the route layer type
it should have been fixed in 11.1.1 / 11.1.2 according to this backport - #89248
however it's still broken for me when making use of the route layer type
Can confirm this as well. (Deployed without Docker.)
In 11.1.3 it works for me with the layer type "Markers". for "Heatmap" it is still broken.
Is there any updates on this? Using route and also have this issue.
See #89777 fix promised soon
What happened?
I'm plotting a dataset of geohashes using the heatmap layer type. When
Fit to data
is selected, I get a map of the entire world with the heatmap displayed.What did you expect to happen?
The map should be zoomed in on the area where data points are present
Did this work before?
No, but it does work as expected with the
Markers
layer type, so it doesn't seem to be a problem with my dataset.Also reported by another user here in May 2023, so this behavior seems to have been present for some time.
How do we reproduce it?
Fit to data
for the initial viewIs the bug inside a dashboard panel?
Panel debug snapshot dashboard
```json { "panels": [ { "datasource": { "type": "grafana", "uid": "grafana" }, "description": "", "fieldConfig": { "defaults": { "custom": { "hideFrom": { "tooltip": false, "viz": false, "legend": false } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "color": { "mode": "thresholds" } }, "overrides": [] }, "gridPos": { "h": 13, "w": 15, "x": 0, "y": 0 }, "id": 2, "options": { "view": { "allLayers": false, "id": "fit", "lat": 40, "lon": -100, "zoom": 15, "lastOnly": false, "layer": "Layer 1" }, "controls": { "showZoom": true, "mouseWheelZoom": true, "showAttribution": true, "showScale": false, "showMeasure": false, "showDebug": false }, "tooltip": { "mode": "details" }, "basemap": { "config": {}, "name": "Layer 0", "type": "default" }, "layers": [ { "config": { "weight": { "fixed": 1, "min": 0, "max": 1 }, "blur": 15, "radius": 5 }, "filterData": { "id": "byRefId", "options": "A" }, "name": "Layer 1", "tooltip": true, "type": "heatmap" } ] }, "pluginVersion": "10.2.2", "targets": [ { "refId": "A", "datasource": { "type": "grafana", "uid": "grafana" }, "queryType": "snapshot", "snapshot": [ { "schema": { "refId": "A", "meta": { "typeVersion": [ 0, 0 ], "preferredVisualisationType": "table", "executedQueryString": "select\n location_geohash, count()\nfrom REDACTED" }, "name": "A", "fields": [ { "name": "location_geohash", "type": "string", "typeInfo": { "frame": "string" }, "config": {} }, { "name": "count()", "type": "number", "typeInfo": { "frame": "uint64" }, "config": {} } ] }, "data": { "values": [ [ "f84czwyg", "f8541m4s", "f8541xxu", "f84fpe0g", "f8540vmt", "f8540vkg", "f8541x9e", "f84fp759", "f8541tv8", "f84fnk1k", "f8541nj4", "f84fp940", "f84fpfgw", "f854058u", "f8541e0k", "f84fp4ff", "f8540uxv", "f84fp81u", "f8540se9", "f84fnjcv", "f84fp3r3", "f84fpfuc", "f8541q99", "f8541ttu", "f8541hu7", "f84fnpdz", "f84czu8p", "f8541qsf", "f84fp577", "f84fpe70", "f84fnshh", "f84fpc92", "f8540huj", "f84czwqd" ], [ 1, 1, 1, 3, 3, 3, 3, 3, 1, 1, 2, 1, 2, 1, 2, 11, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 2, 1, 1, 4, 1, 1 ] ] } } ] } ], "title": "Reproduced with embedded data", "type": "geomap" }, { "gridPos": { "h": 7, "w": 9, "x": 15, "y": 0 }, "id": 5, "options": { "content": "Environment (with versions)?
Grafana: 10.2.2 OS: MacOS Browser: Chrome 122.0.6261.112
Grafana platform?
None
Datasource(s)?
No response