From 25d3f891fa4de8a37eded86ea7fc23cdff597316 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Wed, 28 Aug 2019 22:11:22 +0200 Subject: [PATCH] cater for null speed --- html/planeObject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/planeObject.js b/html/planeObject.js index 71c85ea..14a3585 100644 --- a/html/planeObject.js +++ b/html/planeObject.js @@ -542,7 +542,7 @@ PlaneObject.prototype.updateIcon = function() { || ZoomLvl >= labelZoomGround )) { if (extendedLabels) { - if (this.onGround && this.speed < 15) { + if (this.onGround && (!this.speed || this.speed < 15)) { labelText = this.name; } else { labelText = Number(this.speed).toFixed(0)+ " " + this.altitude + "\n" + this.name;