adjust label position a bit

This commit is contained in:
Matthias Wirth
2019-08-22 17:34:41 +02:00
parent 322e09495d
commit e38b82aa5d

View File

@@ -571,9 +571,8 @@ PlaneObject.prototype.updateIcon = function() {
textAlign: 'left',
textBaseline: "top",
font: 'bold 12px tahoma',
offsetX: (5*this.scale),
offsetY: (14*this.scale),
zIndex: (this.zIndex-100000),
offsetX: (this.baseMarker.size[0]*0.5*0.74*this.scale),
offsetY: (this.baseMarker.size[0]*0.5*0.74*this.scale),
}),
zIndex: this.zIndex,
});
@@ -978,10 +977,9 @@ PlaneObject.prototype.destroy = function() {
this.tr.parentNode.removeChild(this.tr);
this.tr = null;
}
this.track_linesegs = null;
this.filter = null;
this.markerIcon = null;
this.markerStyle = null;
if (this.icao == SelectedPlane)
SelectedPlane = null;
for (var key in Object.keys(this)) {
delete this[key];
}
};