fix: execute focus on after fitToScreen

This commit is contained in:
Azgaar 2023-11-25 03:07:38 +04:00
parent c3cfffec87
commit 9991b4a3c0
3 changed files with 3 additions and 3 deletions

View file

@ -306,9 +306,9 @@ async function checkLoadParameters() {
async function generateMapOnLoad() {
await applyStyleOnLoad(); // apply previously selected default or custom style
await generate(); // generate map
focusOn(); // based on searchParams focus on point, cell or burg from MFCG
applyPreset(); // apply saved layers preset
fitMapToScreen();
focusOn(); // based on searchParams focus on point, cell or burg from MFCG
}
// focus on coordinates, cell or burg provided in searchParams