ol/geom/MultiPoint#containsXY
This commit is contained in:
@@ -57,6 +57,17 @@ class MultiPoint extends SimpleGeometry {
|
||||
return multiPoint;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
* @override
|
||||
* @api
|
||||
*/
|
||||
containsXY(x, y) {
|
||||
return this.getCoordinates().some(function(coord) {
|
||||
return coord[0] === x && coord[1] === y;
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user