Tweak the svg stroke width based on scale.
The stroke width is applied before scaling, but we actually want the outline to have the same weight regardless of the scale chosen.
This commit is contained in:
parent
fc95719f2e
commit
b7fc52bcb3
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ PlaneObject.prototype.updateIcon = function() {
|
|||
var opacity = (this.position_from_mlat ? 0.75 : 1.0);
|
||||
var outline = (this.position_from_mlat ? OutlineMlatColor : OutlineADSBColor);
|
||||
var type = this.getMarkerIconType();
|
||||
var weight = this.selected ? 4 : 1;
|
||||
var weight = ((this.selected ? 2 : 1) / MarkerIcons[type].scale).toFixed(1);
|
||||
var rotation = (this.track === null ? 0 : this.track);
|
||||
|
||||
var svgKey = col + '!' + outline + '!' + type + '!' + weight;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue