ol/geom/Point#containsXY

This commit is contained in:
timkeane
2018-10-25 17:53:42 -04:00
committed by Frederic Junod
parent 4a5fa1f840
commit daffbde80b
2 changed files with 28 additions and 0 deletions

View File

@@ -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
*/