Merge pull request #10135 from mike-000/patch-1
Revise the description of applyTransform for geometries
This commit is contained in:
@@ -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.
|
* The geometry is modified in place.
|
||||||
* If you do not want the geometry modified in place, first `clone()` it and
|
* If you do not want the geometry modified in place, first `clone()` it and
|
||||||
* then use this function on the clone.
|
* then use this function on the clone.
|
||||||
* @abstract
|
* @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) {
|
applyTransform(transformFn) {
|
||||||
abstract();
|
abstract();
|
||||||
|
|||||||
Reference in New Issue
Block a user