cater for null speed

This commit is contained in:
Matthias Wirth
2019-08-28 22:11:22 +02:00
parent 89a6916108
commit 25d3f891fa

View File

@@ -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;