stream.lineEnd()
Indicates the end of a line or ring. Within a polygon, indicates the end of a ring. Unlike GeoJSON, the redundant closing coordinate of a ring is not indicated via point, and instead is implied via lineEnd within a polygon. Thus, the given polygon input:
{ "type": "Polygon", "coordinates": [ [[0, 0], [1, 0], [1, 1], [0, 1], [0, 0]] ] }
Will produce the following series of method calls on the stream:
stream.polygonStart(); stream.lineStart(); stream.point(0, 0); stream.point(1, 0); stream.point(1, 1); stream.point(0, 1); stream.lineEnd(); stream.polygonEnd();
Please login to continue.