mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-07-16 16:49:09 +00:00
hopefully more reliable initial fitBounds
This commit is contained in:
@@ -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();
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user