hopefully more reliable initial fitBounds

This commit is contained in:
vcoppe
2026-06-03 18:48:07 +02:00
parent 26e4b637a2
commit befcba00b4
2 changed files with 22 additions and 21 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ export class BoundsManager {
this._unsubscribes.push(
map.subscribe((map_) => {
if (!map_) return;
map_.fitBounds(this._bounds, { padding: 80, linear: true, easing: () => 1 });
map_.fitBounds(this._bounds, { padding: 80, linear: true, animate: false });
this.reset();
})
);