ol/geom/MultiLineString#containsXY

This commit is contained in:
timkeane
2018-10-25 19:15:05 -04:00
committed by Frederic Junod
parent c1963ba369
commit 5967bc75ba
2 changed files with 37 additions and 0 deletions

View File

@@ -100,6 +100,17 @@ class MultiLineString extends SimpleGeometry {
return new MultiLineString(this.flatCoordinates.slice(), this.layout, this.ends_.slice());
}
/**
* @inheritDoc
* @override
* @api
*/
containsXY(x, y) {
return this.getLineStrings().some(function(lineString) {
return lineString.containsXY(x, y);
});
}
/**
* @inheritDoc
*/