make mapOrientation a query parameter

This commit is contained in:
Matthias Wirth
2021-03-05 10:00:08 +01:00
parent 5a544efc68
commit f42e987f41

View File

@@ -627,6 +627,11 @@ function initPage() {
filterMaxRange *= 1852; // convert from nmi to meters
if (usp.has('mapOrientation')) {
mapOrientation = parseFloat(usp.get('mapOrientation'));
}
mapOrientation *= (Math.PI/180); // adjust to radians
if (usp.has('r')) {
let numbers = (usp.get('r') || "").split('-');
let ts = new Date();
@@ -661,8 +666,6 @@ function initPage() {
setInterval(globeRateUpdate(), 300000);
}
mapOrientation *= (Math.PI/180); // adjust to radians
if (localStorage['enableLabels'] == 'true'){
toggleLabels();
}