Attempt at fixing openstreetmap map when viewed on mobile (I find going portrait/landscape was needed previously)

pull/2757/head^2
Gordon Williams 2023-05-17 10:38:21 +01:00
parent 5f715b7f78
commit 397c16757c
1 changed files with 2 additions and 0 deletions

View File

@ -239,6 +239,8 @@ TODO:
document.getElementById("mapContainer").style.display = "";
document.getElementById("maptiles").style.display="none";
document.getElementById("uploadbuttons").style.display="none";
map.invalidateSize();
map.locate({setView: true, maxZoom: 16, enableHighAccuracy:true});
}
// -----------------------------------------------------