mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-07-25 12:56:29 +00:00
fix embedding playground zoom
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
import { selection } from '$lib/logic/selection';
|
||||
import { untrack } from 'svelte';
|
||||
import { isSelected, toggle } from '$lib/components/map/layer-control/utils';
|
||||
import { boundsManager } from '$lib/logic/bounds';
|
||||
|
||||
let {
|
||||
useHash = true,
|
||||
@@ -90,6 +91,7 @@
|
||||
fileStateCollection.setEmbeddedFiles(files);
|
||||
$fileOrder = ids;
|
||||
selection.selectAll();
|
||||
boundsManager.fitBoundsOnLoad(ids);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user