mirror of https://github.com/espruino/BangleApps
Attempt at fixing openstreetmap map when viewed on mobile (I find going portrait/landscape was needed previously)
parent
5f715b7f78
commit
397c16757c
|
@ -239,6 +239,8 @@ TODO:
|
||||||
document.getElementById("mapContainer").style.display = "";
|
document.getElementById("mapContainer").style.display = "";
|
||||||
document.getElementById("maptiles").style.display="none";
|
document.getElementById("maptiles").style.display="none";
|
||||||
document.getElementById("uploadbuttons").style.display="none";
|
document.getElementById("uploadbuttons").style.display="none";
|
||||||
|
map.invalidateSize();
|
||||||
|
map.locate({setView: true, maxZoom: 16, enableHighAccuracy:true});
|
||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------
|
// -----------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue