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