Skip to content

Commit

Permalink
Revert "Cover edge case where IconStyle tag is empty CesiumGS#5819"
Browse files Browse the repository at this point in the history
This reverts commit 470810d.
  • Loading branch information
Josh Bernstein committed Oct 18, 2017
1 parent 650066a commit df09819
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Source/DataSources/KmlDataSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit df09819

Please sign in to comment.