osprey shenanigans
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user