osprey shenanigans

This commit is contained in:
Matthias Wirth
2020-04-15 00:20:59 +02:00
parent 64b38e0b14
commit bd2c206d7b
2 changed files with 9 additions and 2 deletions

View File

@@ -695,13 +695,17 @@ function altitudeColor(altitude) {
PlaneObject.prototype.updateIcon = function() {
let icaoType = this.icaoType;
if (this.icaoType == 'V22' && this.speed < 100)
icaoType = 'R44';
let fillColor = this.getMarkerColor();
let baseMarkerKey = (this.category ? this.category : "A0") + "_"
+ this.typeDescription + "_" + this.wtc + "_" + this.icaoType;
+ this.typeDescription + "_" + this.wtc + "_" + icaoType;
if (!this.baseMarker || this.baseMarkerKey != baseMarkerKey) {
this.baseMarkerKey = baseMarkerKey;
this.baseMarker = getBaseMarker(this.category, this.icaoType, this.typeDescription, this.wtc);
this.baseMarker = getBaseMarker(this.category, icaoType, this.typeDescription, this.wtc);
this.shape = this.baseMarker[0];
this.baseScale = this.baseMarker[1];
this.baseMarker = shapes[this.shape]