From 4b0b03a4c76bf68a314dd0e886914185864d6d41 Mon Sep 17 00:00:00 2001 From: Josh Bernstein Date: Mon, 23 Oct 2017 21:14:59 +0000 Subject: [PATCH] Avoid using == #5819 --- Source/DataSources/KmlDataSource.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/DataSources/KmlDataSource.js b/Source/DataSources/KmlDataSource.js index 031406722efe..ef41302c2250 100644 --- a/Source/DataSources/KmlDataSource.js +++ b/Source/DataSources/KmlDataSource.js @@ -1146,7 +1146,11 @@ define([ if (!defined(billboard.image)) { billboard.image = dataSource._pinBuilder.fromColor(Color.YELLOW, 64); - } else if (billboard.image == false) { + + // If there were empty tags in the KML, then billboard.image was set to false above + // However, in this case, the false value would have been converted to a property afterwards + // Thus, we check if billboard.image is defined with value of false + } else if (billboard.image && !billboard.image.getValue()) { billboard.image = undefined; }