Class: MultiPoint

ol/geom/MultiPoint~MultiPoint


import MultiPoint from 'ol/geom/MultiPoint';

Multi-point geometry.

new MultiPoint(coordinates, opt_layout)

geom/MultiPoint.js, line 19
Name Type Description
coordinates Array.<module:ol/coordinate~Coordinate> | Array.<number>

Coordinates. For internal use, flat coordinates in combination with opt_layout are also accepted.

layout module:ol/geom/GeometryLayout

Layout.

Methods

appendPoint(point)

geom/MultiPoint.js, line 40

Append the passed point to this multipoint.

Name Type Description
point module:ol/geom/Point~Point

Point.

clone(){module:ol/geom/MultiPoint~MultiPoint}

geom/MultiPoint.js, line 55

Make a complete copy of the geometry.

Returns:
Clone.

getCoordinates(){Array.<module:ol/coordinate~Coordinate>}

geom/MultiPoint.js, line 89

Return the coordinates of the multipoint.

Returns:
Coordinates.

getPoint(index){module:ol/geom/Point~Point}

geom/MultiPoint.js, line 100

Return the point at the specified index.

Name Type Description
index number

Index.

Returns:
Point.

getPoints(){Array.<module:ol/geom/Point~Point>}

geom/MultiPoint.js, line 114

Return the points of this multipoint.

Returns:
Points.

getType()

geom/MultiPoint.js, line 131

intersectsExtent()

geom/MultiPoint.js, line 139

setCoordinates(coordinates, opt_layout)

geom/MultiPoint.js, line 159

Set the coordinates of the multipoint.

Name Type Description
coordinates Array.<module:ol/coordinate~Coordinate>

Coordinates.

layout module:ol/geom/GeometryLayout

Layout.