Skip to content

Commit

Permalink
Make map load better
Browse files Browse the repository at this point in the history
Added inalidatesize after making map visible
  • Loading branch information
jon011235 authored Feb 15, 2024
1 parent ecb063c commit 353be8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand Down Expand Up @@ -197,4 +198,4 @@ async function encrypt(secret, password) {

// Display the Base64-encoded encrypted secret
return base64Encoded
}
}

0 comments on commit 353be8c

Please sign in to comment.