ol.geom2.PointCollection

new PointCollection

This is an internal class that will be removed from the API.

Parameters:
Name Type Argument Description
buf ol.structs.Buffer

Buffer.

dim number <optional>
(Optional)

Dimension.

Source:
  • pointcollection.js, line 23

Methods

<static> createEmpty

This is an internal function that will be removed from the API.

Parameters:
Name Type Argument Description
capacity number

Capacity.

dim number <optional>
(Optional)

Dimension.

Source:
  • pointcollection.js, line 44
Returns:

Point collection.

Type
ol.geom2.PointCollection

<static> pack

This is an internal function that will be removed from the API.

Parameters:
Name Type Argument Description
unpackedPoints Array.<ol.geom2.Point>

Unpacked points.

capacity number <optional>
(Optional)

Capacity.

dim number <optional>
(Optional)

Dimension.

Source:
  • pointcollection.js, line 58
Returns:

Point collection.

Type
ol.geom2.PointCollection

add

Parameters:
Name Type Description
point ol.geom2.Point

Point.

Source:
  • pointcollection.js, line 76
Returns:

Offset.

Type
number