mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-19 17:22:12 +00:00
resize map on load
This commit is contained in:
1 parent
e6d089b34b
commit
b04e0f10b2
1 file changed
+1
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user