Make the selection outline bigger, make it in terms of pixels (unscaled), don't use the outline on the heading marker bit.
This commit is contained in:
parent
809fcd9c59
commit
394b4d586e
|
@ -305,7 +305,7 @@ PlaneObject.prototype.updateIcon = function() {
|
||||||
var baseMarker = getBaseMarker(this.category, this.icaotype, this.typeDescription, this.wtc);
|
var baseMarker = getBaseMarker(this.category, this.icaotype, this.typeDescription, this.wtc);
|
||||||
var weight = ((this.selected ? 2 : 1) / baseMarker.scale).toFixed(1);
|
var weight = ((this.selected ? 2 : 1) / baseMarker.scale).toFixed(1);
|
||||||
var rotation = (this.track === null ? 0 : this.track);
|
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 svgKey = col + '!' + outline + '!' + baseMarker.key + '!' + weight;
|
||||||
var styleKey = opacity + '!' + rotation;
|
var styleKey = opacity + '!' + rotation;
|
||||||
|
@ -345,7 +345,7 @@ PlaneObject.prototype.updateIcon = function() {
|
||||||
anchorYUnits: 'pixels',
|
anchorYUnits: 'pixels',
|
||||||
scale: 1.0,
|
scale: 1.0,
|
||||||
imgSize: [size, size],
|
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,
|
rotation: rotation * Math.PI / 180.0,
|
||||||
opacity: opacity,
|
opacity: opacity,
|
||||||
rotateWithView: true
|
rotateWithView: true
|
||||||
|
|
Loading…
Reference in a new issue