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.
-
<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.
-
add
-
Parameters:
Name Type Description point
ol.geom2.Point Point.
- Source:
- pointcollection.js, line 76
Returns:
Offset.
- Type
- number