style - fetch local json files

This commit is contained in:
Azgaar 2022-02-05 21:23:10 +03:00
parent 79c1e2abd9
commit 49a8a9f7c7
12 changed files with 3392 additions and 517 deletions

View file

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