Merge pull request #10135 from mike-000/patch-1

Revise the description of applyTransform for geometries
This commit is contained in:
Tim Schaub
2019-10-16 12:54:32 -06:00
committed by GitHub

View File

@@ -229,12 +229,13 @@ class Geometry extends BaseObject {
}
/**
* Apply a transform function to each coordinate of the geometry.
* Apply a transform function to the coordinates of the geometry.
* The geometry is modified in place.
* If you do not want the geometry modified in place, first `clone()` it and
* then use this function on the clone.
* @abstract
* @param {import("../proj.js").TransformFunction} transformFn Transform.
* @param {import("../proj.js").TransformFunction} transformFn Transform function.
* Called with a flat array of geometry coordinates.
*/
applyTransform(transformFn) {
abstract();