Merge pull request #12212 from voegelas/ignore-empty-gx-coord

Ignore empty gx:coord elements in KML files
This commit is contained in:
MoonE
2021-06-21 18:18:00 +02:00
committed by GitHub
2 changed files with 18 additions and 8 deletions

View File

@@ -1603,9 +1603,11 @@ describe('ol.format.KML', function () {
' <when>2014-01-06T19:38:55Z</when>' +
' <when>2014-01-06T19:39:03Z</when>' +
' <when>2014-01-06T19:39:10Z</when>' +
' <when>2014-01-06T19:39:17Z</when>' +
' <gx:coord>8.1 46.1 1909.9</gx:coord>' +
' <gx:coord>8.2 46.2 1925.2</gx:coord>' +
' <gx:coord>8.3 46.3 1926.2</gx:coord>' +
' <gx:coord/>' +
' </gx:Track>' +
' </Placemark>' +
'</kml>';