You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In Open Layer 8.2, the method readFeatures from GeoJSON throws error if a LineString has empty coordinates. The error was introduced in 4c7bd4a. The error message is:
TypeError: Cannot read properties of undefined (reading 'length')
at GeoJSON.js:407:47
at xw (GeoJSON.js:315:18)
at ww.readFeatureFromObject (GeoJSON.js:125:22)
at ww.readFeaturesFromObject (GeoJSON.js:175:36)
at ww.readFeatures (JSONFeature.js:53:17)
Describe the bug
In Open Layer 8.2, the method readFeatures from GeoJSON throws error if a LineString has empty coordinates. The error was introduced in 4c7bd4a. The error message is:
To Reproduce
Expected behavior
Parse the feature successfully as previous versions (returning an feature with an empty geometry).
The text was updated successfully, but these errors were encountered: