set bounds once map is loaded
This commit is contained in:
parent
ecfa3143ef
commit
46bafa9fff
@ -81,10 +81,14 @@ targetMapBounds.subscribe((bounds) => {
|
||||
return;
|
||||
}
|
||||
|
||||
get(map)?.fitBounds(bounds.bounds, {
|
||||
padding: 80,
|
||||
linear: true,
|
||||
easing: () => 1
|
||||
map.subscribe((m) => {
|
||||
if (m) {
|
||||
m.fitBounds(bounds.bounds, {
|
||||
padding: 80,
|
||||
linear: true,
|
||||
easing: () => 1
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user