mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-05 01:42:54 +00:00
progress
This commit is contained in:
@@ -71,6 +71,11 @@ targetMapBounds.subscribe((bounds) => {
|
||||
return;
|
||||
}
|
||||
|
||||
let currentBounds = get(map)?.getBounds();
|
||||
if (currentBounds && currentBounds.contains(bounds.bounds.getSouthEast()) && currentBounds.contains(bounds.bounds.getNorthWest())) {
|
||||
return;
|
||||
}
|
||||
|
||||
get(map)?.fitBounds(bounds.bounds, {
|
||||
padding: 80,
|
||||
linear: true,
|
||||
|
Reference in New Issue
Block a user