From 9991b4a3c0ac26d1dfa057b7c42ae40e2e13686a Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sat, 25 Nov 2023 03:07:38 +0400 Subject: [PATCH] fix: execute focus on after fitToScreen --- index.html | 2 +- main.js | 2 +- versioning.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index f9756635..1c6917f9 100644 --- a/index.html +++ b/index.html @@ -7947,7 +7947,7 @@ - + diff --git a/main.js b/main.js index 78270510..945fb0bd 100644 --- a/main.js +++ b/main.js @@ -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 diff --git a/versioning.js b/versioning.js index ba1646f2..69e65f3c 100644 --- a/versioning.js +++ b/versioning.js @@ -1,7 +1,7 @@ "use strict"; // version and caching control -const version = "1.94.05"; // generator version, update each time +const version = "1.94.06"; // generator version, update each time { document.title += " v" + version;