mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
faster distance calc
This commit is contained in:
parent
2e9b332012
commit
34f98fb08b
8 changed files with 101 additions and 80 deletions
|
@ -183,7 +183,7 @@ function* locationChangeSaga({ location }: ReturnType<typeof editorLocationChang
|
|||
if (!ready) return;
|
||||
|
||||
yield call(loadMapFromPath);
|
||||
MainMap.fitBounds(MainMap.getVisibleBounds(), { animate: true });
|
||||
MainMap.fitVisibleBounds({ animate: true });
|
||||
}
|
||||
|
||||
function* keyPressedSaga({ key, target }: ReturnType<typeof editorKeyPressed>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue