Merge pull request #9400 from KaiVolland/kml-fixes
Changes to parsing of KML displayName
This commit is contained in:
@@ -1709,7 +1709,7 @@ describe('ol.format.KML', function() {
|
||||
expect(f.get('population')).to.be('60000000');
|
||||
});
|
||||
|
||||
it('can read ExtendedData with displayName when name undefined', function() {
|
||||
it('can read ExtendedData with displayName', function() {
|
||||
const text =
|
||||
'<kml xmlns="http://earth.google.com/kml/2.2">' +
|
||||
' <Placemark xmlns="http://earth.google.com/kml/2.2">' +
|
||||
@@ -1730,7 +1730,8 @@ describe('ol.format.KML', function() {
|
||||
const f = fs[0];
|
||||
expect(f).to.be.an(Feature);
|
||||
expect(f.get('capital')).to.be('London');
|
||||
expect(f.get('country')).to.be('United-Kingdom');
|
||||
expect(f.get('country').value).to.be('United-Kingdom');
|
||||
expect(f.get('country').displayName).to.be('Country');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user