diff --git a/Source/DataSources/KmlDataSource.js b/Source/DataSources/KmlDataSource.js index 139cb9f1d1d6..308732098b4c 100644 --- a/Source/DataSources/KmlDataSource.js +++ b/Source/DataSources/KmlDataSource.js @@ -701,7 +701,12 @@ define([ var color = queryColorValue(node, 'color', namespaces.kml); var iconNode = queryFirstNode(node, 'Icon', namespaces.kml); - var icon = getIconHref(iconNode, dataSource, sourceUri, uriResolver, false, query); + var icon; + if (!defined(iconNode)) { + icon = dataSource._pinBuilder.fromColor(Color.YELLOW, 64); + } else { + 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);