0
Geomap: Basemap fallback
Source: grafana/grafana#136487 · opened by @gtk-grafana
When a basemap fails to load, draw the lightweight bundled map instead of an empty background.
The lightweight bundled map ships inside Grafana and is served by Grafana itself, so it is available on every install, including offline and air-gapped ones. That makes it the fallback for any basemap: the default, or one a user picked, from any provider.
• Trigger the fallback on load failures that surface as errors, such as HTTP errors, blocked requests or a style that fails to parse.
• Failures that return HTTP 200 with altered content (for example a watermarked tile) cannot be detected this way and are out of scope.
• Keep the panel's view, data layers and controls unchanged when the fallback is drawn.
• Log the original failure, so the cause stays visible.
Depends on bundling the lightweight map, and on drawing past its maximum zoom so the fallback never goes blank at higher zooms.
The lightweight bundled map ships inside Grafana and is served by Grafana itself, so it is available on every install, including offline and air-gapped ones. That makes it the fallback for any basemap: the default, or one a user picked, from any provider.
• Trigger the fallback on load failures that surface as errors, such as HTTP errors, blocked requests or a style that fails to parse.
• Failures that return HTTP 200 with altered content (for example a watermarked tile) cannot be detected this way and are out of scope.
• Keep the panel's view, data layers and controls unchanged when the fallback is drawn.
• Log the original failure, so the cause stays visible.
Depends on bundling the lightweight map, and on drawing past its maximum zoom so the fallback never goes blank at higher zooms.
No pledges yet. Be the first to back this.
No comments yet.