add

external fun add(options: BufferPolygonOptions, result: BufferPolygon): BufferPolygon(source)

Adds a new polygon to the collection, with the specified options. A BufferPolygon instance is linked to the new polygon, using the 'result' argument if given, or a new instance if not. For repeated calls, prefer to reuse a single BufferPolygon instance rather than allocating a new instance on each call.

See also