From 8be23b799dbbb8414480bd78548ac62e0b0c5f8f Mon Sep 17 00:00:00 2001 From: William Wall Date: Wed, 3 Oct 2018 15:23:10 -0600 Subject: [PATCH] Fix getSimplifiedGeometry definition The override here should match the definition in ol/geom/Geometry --- src/ol/render/Feature.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ol/render/Feature.js b/src/ol/render/Feature.js index 4188605672..fa539e03a7 100644 --- a/src/ol/render/Feature.js +++ b/src/ol/render/Feature.js @@ -191,6 +191,14 @@ class RenderFeature { return this; } + /** + * @param {number} squaredTolerance Squared tolerance. + * @return {RenderFeature} Simplified geometry. + */ + getSimplifiedGeometry(squaredTolerance) { + return this; + } + /** * Get the feature properties. * @return {Object} Feature properties. @@ -261,12 +269,4 @@ RenderFeature.prototype.getFlatCoordinates = RenderFeature.prototype.getOrientedFlatCoordinates; -/** - * Get the feature for working with its geometry. - * @return {RenderFeature} Feature. - */ -RenderFeature.prototype.getSimplifiedGeometry = - RenderFeature.prototype.getGeometry; - - export default RenderFeature;