From 394b4d586e0821a57cd30565aefec097e24ddf82 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Wed, 14 Sep 2016 18:02:00 +0100 Subject: [PATCH] Make the selection outline bigger, make it in terms of pixels (unscaled), don't use the outline on the heading marker bit. --- public_html/planeObject.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public_html/planeObject.js b/public_html/planeObject.js index 7c629f9..827b0e8 100644 --- a/public_html/planeObject.js +++ b/public_html/planeObject.js @@ -305,7 +305,7 @@ PlaneObject.prototype.updateIcon = function() { var baseMarker = getBaseMarker(this.category, this.icaotype, this.typeDescription, this.wtc); var weight = ((this.selected ? 2 : 1) / baseMarker.scale).toFixed(1); var rotation = (this.track === null ? 0 : this.track); - var transparentBorderWidth = 16; + var transparentBorderWidth = (32 / baseMarker.scale).toFixed(1); var svgKey = col + '!' + outline + '!' + baseMarker.key + '!' + weight; var styleKey = opacity + '!' + rotation; @@ -345,7 +345,7 @@ PlaneObject.prototype.updateIcon = function() { anchorYUnits: 'pixels', scale: 1.0, imgSize: [size, size], - src: svgPathToURI(arrowPath, [size, size], outline, 1, outline, transparentBorderWidth), + src: svgPathToURI(arrowPath, [size, size], outline, 1, outline, 0), rotation: rotation * Math.PI / 180.0, opacity: opacity, rotateWithView: true