resize map on load

This commit is contained in:
vcoppe
2025-11-09 19:20:10 +01:00
parent e6d089b34b
commit b04e0f10b2

View File

@@ -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));