Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions web/src/chart-canvas/chart-canvas.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,14 @@ export class ChartCanvas extends HTMLElement {
// Attribution bottom-left so the bottom-right corner is free for the app's
// scale/zoom readout.
attributionControl: { position: "bottom-left" },
// Keep tiles across the full zoom range (z3.5–18 = 15 levels) so zooming in
// and out finds previously-rendered tiles already in cache rather than
// re-requesting them. The default (5) is too narrow for a chart plotter where
// users routinely swing between overview and approach scales.
maxTileCacheZoomLevels: 20,
// Tile fade-in duration. The default 300ms makes pan feel laggy as new tiles
// fade in slowly; 100ms is still smooth but noticeably snappier.
fadeDuration: 100,
});
this._map = map;
this.map = map; // public handle
Expand Down