diff --git a/html/script.js b/html/script.js index d306a43..9bb6646 100644 --- a/html/script.js +++ b/html/script.js @@ -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(); }