ol/geom/Point#containsXY
This commit is contained in:
1 parent
4a5fa1f840
commit
daffbde80b
2 files changed
+28
No files matched your search
@@ -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