diff --git a/html/planeObject.js b/html/planeObject.js index aed6afe..407b6a3 100644 --- a/html/planeObject.js +++ b/html/planeObject.js @@ -929,10 +929,10 @@ PlaneObject.prototype.updateIcon = function() { backgroundFill: bgFill, stroke: labelStrokeNarrow, textAlign: 'left', - textBaseline: 'top', + textBaseline: labels_top ? 'bottom' : 'top', font: labelFont, offsetX: (this.shape.w *0.5*0.74*this.scale), - offsetY: (this.shape.w *0.5*0.74*this.scale), + offsetY: labels_top ? (this.shape.w *-0.3*0.74*this.scale) : (this.shape.w *0.5*0.74*this.scale), padding: [1, 0, -1, 2], }), zIndex: this.zIndex, diff --git a/html/script.js b/html/script.js index 5dfea2e..389b887 100644 --- a/html/script.js +++ b/html/script.js @@ -117,6 +117,7 @@ let nogpsOnly = false; let trace_hist_only = false; let traces_high_res = false; let show_rId = true; +let labels_top = false; let infoBlockWidth = baseInfoBlockWidth; @@ -536,6 +537,8 @@ function initPage() { onMobile = window.mobilecheck(); if (uk_advisory) { + + labels_top = true; tempTrails = true; tempTrailsTimeout = 45; SiteCirclesDistances = new Array(5, 10, 20);