From c46aef6dbc377c5eeeb35d62c39fc2bfa5ffca5a Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Wed, 18 Nov 2020 21:52:37 +0100 Subject: [PATCH] /?iconScale --- html/script.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/html/script.js b/html/script.js index 7dcab11..ab49587 100644 --- a/html/script.js +++ b/html/script.js @@ -80,6 +80,7 @@ let traceDay = null; let traceOpts = {}; let icaoParam = null; let globalScale = 1; +let iconScale = 1; let newWidth = lineWidth; let SiteOverride = false; let airport = null; @@ -542,6 +543,12 @@ function initPage() { mapContrastPercentage = contrast; } + if (search.has('iconScale')) { + let scale = parseFloat(search.get('iconScale')); + if (!isNaN(scale)) + iconScale = scale; + } + if (search.has('hideButtons')) hideButtons = true; @@ -3622,7 +3629,7 @@ function changeZoom(init) { scaleFactor = markerSmall; // scale markers according to global scaling - scaleFactor *= Math.pow(1.3, globalScale) * globalScale; + scaleFactor *= Math.pow(1.3, globalScale) * globalScale * iconScale;; if (!init && showTrace) updateAddressBar();