diff --git a/Specs/Data/KML/simpleEmptyIconStyle.kml b/Specs/Data/KML/simpleEmptyIconStyle.kml new file mode 100644 index 000000000000..1495faf4c004 --- /dev/null +++ b/Specs/Data/KML/simpleEmptyIconStyle.kml @@ -0,0 +1,15 @@ + + + + + + image.png]]> + + 1,2,3 + + + + \ No newline at end of file diff --git a/Specs/DataSources/KmlDataSourceSpec.js b/Specs/DataSources/KmlDataSourceSpec.js index 29e1501a8806..1fe3be6e4bbb 100644 --- a/Specs/DataSources/KmlDataSourceSpec.js +++ b/Specs/DataSources/KmlDataSourceSpec.js @@ -287,6 +287,18 @@ defineSuite([ }); }); + it('if load contains empty tag for placemark, default yellow pin does show', function() { + var dataSource = new KmlDataSource(options); + return loadBlob('Data/KML/simpleEmptyIconStyle.kml').then(function(blob) { + return dataSource.load(blob); + }).then(function(source) { + expect(source.entities); + expect(source.entities.values.length).toEqual(1); + expect(source.entities._entities._array.length).toEqual(1); + expect(source.entities._entities._array[0]._billboard._image == dataSource._pinBuilder.fromColor(Color.YELLOW, 64)); + }); + }); + it('sets DataSource name from Document', function() { var kml = '\ \