diff --git a/html/markers.js b/html/markers.js index f953a71..27b6f58 100644 --- a/html/markers.js +++ b/html/markers.js @@ -373,6 +373,9 @@ let TypeDesignatorIcons = { 'A400': ['c130', 1.15], + 'V22': ['twin_large', 0.96], + 'R44': ['helicopter', 1.1], + 'C17': ['c17', 0.82], 'E3TF': ['e3awacs', 0.88], 'E3CF': ['e3awacs', 0.88], diff --git a/html/planeObject.js b/html/planeObject.js index 925b50f..cc5b72f 100644 --- a/html/planeObject.js +++ b/html/planeObject.js @@ -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]