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 capacitynumber Capacity.
dimnumber <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 unpackedPointsArray.<ol.geom2.Point> Unpacked points.
capacitynumber <optional>
(Optional) Capacity.
dimnumber <optional>
(Optional) Dimension.
- Source:
- pointcollection.js, line 58
Returns:
Point collection.
-
add
-
Parameters:
Name Type Description pointol.geom2.Point Point.
- Source:
- pointcollection.js, line 76
Returns:
Offset.
- Type
- number