From bd655b325dc9f123081a7ca9ce3d2bdbc7beafcd Mon Sep 17 00:00:00 2001 From: Florent gravin Date: Tue, 18 Sep 2018 14:04:53 +0200 Subject: [PATCH] Implement Geometry containsXY with correct signature --- src/ol/geom/Geometry.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/ol/geom/Geometry.js b/src/ol/geom/Geometry.js index 887602fba3..88c1ab702e 100644 --- a/src/ol/geom/Geometry.js +++ b/src/ol/geom/Geometry.js @@ -247,12 +247,20 @@ class Geometry extends BaseObject { 0, 0); transform2D(inCoordinates, 0, inCoordinates.length, stride, tmpTransform, outCoordinates); - return getTransform(source, destination)(inCoordinates, outCoordinates, stride); + return getTransform(sourceProj, destination)(inCoordinates, outCoordinates, stride); } : - getTransform(source, destination); + getTransform(sourceProj, destination); this.applyTransform(transformFn); return this; } + + /** + * @param {number} x X. + * @param {number} y Y. + * @return {boolean} Contains (x, y). + */ + containsXY = function(x, y) { return false}; + }