From b04e0f10b206783add0550871982767206a22ca2 Mon Sep 17 00:00:00 2001 From: vcoppe Date: Sun, 9 Nov 2025 19:20:10 +0100 Subject: [PATCH] resize map on load --- website/src/lib/components/map/map.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/website/src/lib/components/map/map.ts b/website/src/lib/components/map/map.ts index 23050e2d1..ad7e178ca 100644 --- a/website/src/lib/components/map/map.ts +++ b/website/src/lib/components/map/map.ts @@ -166,6 +166,7 @@ export class MapboxGLMap { map.on('load', () => { this._map.set(map); // only set the store after the map has loaded window._map = map; // entry point for extensions + this.resize(); scaleControl.setUnit(get(distanceUnits)); this._onLoadCallbacks.forEach((callback) => callback(map));