Closed symbyte closed 7 years ago
Added one comment about a guarantee that I'm not sure exists (whether l.geometries will have length of 1+ always) but otherwise looks great, and thanks so much for contributing a PR!
Let me know if you want me to squash these commits down to one.
👍 Thanks, the fancy new GitHub merge process will let me do that automatically :)
Oh, nice! TIL.
Any idea when this change can be released?
the geojson.line(features) call on a feature collection that does not contain any line features returns an empty array nested inside an array causing the l.geometries.length to always return true, which causes and attempt to pefrorm a write on an empty array of geometries, which causes the write call to never return, and thus keeps the zip function from finishing.
this is avoided by checking the length of the nested array instead.
fixes #43