grafana
grafana copied to clipboard
Geomap: Add dynamic initial view options
What this PR does / why we need it: For dynamic data that changes, setting up map view to "fit data layers" does not update upon data change. As an extension to this support, minimum control options should also be included:
- [x] - Max zoom
- [x] - Padding (%)
- [x] - Last data point only (boolean)
- [x] - Handle single layer bug
After:
Closes #40496
Drone build failed: https://drone.grafana.net/grafana/grafana-enterprise/31533
Drone build failed: https://drone.grafana.net/grafana/grafana-enterprise/31777
Drone build failed: https://drone.grafana.net/grafana/grafana-enterprise/31795
Drone build failed: https://drone.grafana.net/grafana/grafana-enterprise/32161
New options controls for data fit:
- All layers: all data from all layers
- Layer: all data from a selected layer
- Last value: last data point from a selected layer
Drone build failed: https://drone.grafana.net/grafana/grafana-enterprise/33866
Drone build failed: https://drone.grafana.net/grafana/grafana-enterprise/34084
Looked this over with Ryan and came to following conclusions: For now heat map is a little hard to address given the nature of how heat map works, for now we can push this off
As for re-initializing view on layer type change, we can also hold off on that as well. Also, we probably will want to do some exploration for how initial view actually works (whether or not local storage is utilized) etc.
Streaming was a local issue -> It appears the live-service-web-worker
feature flag seems to break streaming right now (current solution is to just disable / remove this feature flag and streaming works as expected)
Drone build failed: https://drone.grafana.net/grafana/grafana-enterprise/34339
This is looking good to me as a first implementation of this feature - I did make a number of refactors so it might be good if @drew08t / @ryantxu look them over to ensure I didn't miss something / test things locally to verify before merging in 👍
Streaming even works :)
Fit.data.streaming.demo.mov
That streaming video is awesome!
Refactoring and clean-up LGTM! Tested locally and works as expected!