From 353be8c2db199f7d4a58f917b5362f8e1c808c70 Mon Sep 17 00:00:00 2001 From: jon011235 <148149771+jon011235@users.noreply.github.com> Date: Fri, 16 Feb 2024 00:02:21 +0100 Subject: [PATCH] Make map load better Added inalidatesize after making map visible --- app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index e66332c..867b49c 100644 --- a/app.js +++ b/app.js @@ -47,7 +47,8 @@ function hide_start_screen(){ //TODO given parameters on URL do this automatically function setup_schnitzeljagd(json){ hide_start_screen(); - map.setView(data.position, 15) + map.setView(data.position, 15); + map.invalidateSize(); } function pfalz(){ @@ -197,4 +198,4 @@ async function encrypt(secret, password) { // Display the Base64-encoded encrypted secret return base64Encoded -} \ No newline at end of file +}