From df09819a84457e48869a2b7c79d2a2c3f0ec638d Mon Sep 17 00:00:00 2001 From: Josh Bernstein Date: Wed, 18 Oct 2017 12:40:57 +0000 Subject: [PATCH] Revert "Cover edge case where IconStyle tag is empty #5819" This reverts commit 470810d104c25fd75e5299b5d0af404bcc71bba5. --- Source/DataSources/KmlDataSource.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Source/DataSources/KmlDataSource.js b/Source/DataSources/KmlDataSource.js index 308732098b4c..139cb9f1d1d6 100644 --- a/Source/DataSources/KmlDataSource.js +++ b/Source/DataSources/KmlDataSource.js @@ -701,12 +701,7 @@ define([ var color = queryColorValue(node, 'color', namespaces.kml); var iconNode = queryFirstNode(node, 'Icon', namespaces.kml); - var icon; - if (!defined(iconNode)) { - icon = dataSource._pinBuilder.fromColor(Color.YELLOW, 64); - } else { - icon = getIconHref(iconNode, dataSource, sourceUri, uriResolver, false, query); - } + var icon = getIconHref(iconNode, dataSource, sourceUri, uriResolver, false, query); var x = queryNumericValue(iconNode, 'x', namespaces.gx); var y = queryNumericValue(iconNode, 'y', namespaces.gx); var w = queryNumericValue(iconNode, 'w', namespaces.gx);