Merge pull request #8782 from wallw-bits/fix-typecheck-render-feature

Fix getSimplifiedGeometry definition
This commit is contained in:
Andreas Hocevar
2018-10-04 21:55:17 +02:00
committed by GitHub

View File

@@ -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<string, *>} 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;