From 0cfb7d2ed19ff9b86e9c8bfde37b60f9af5e8f2d Mon Sep 17 00:00:00 2001 From: Jens Theisen Date: Wed, 29 Jan 2025 11:19:55 +0100 Subject: [PATCH] Add warning about shape distortion #217 --- packages/turf-transform-translate/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/turf-transform-translate/index.ts b/packages/turf-transform-translate/index.ts index ef20f1613..f1c47ea55 100644 --- a/packages/turf-transform-translate/index.ts +++ b/packages/turf-transform-translate/index.ts @@ -9,6 +9,9 @@ import { rhumbDestination } from "@turf/rhumb-destination"; * Moves any geojson Feature or Geometry of a specified distance along a Rhumb Line * on the provided direction angle. * + * Note that this moves the points of your shape individually and can therefore change + * the overall shape. How noticable this is depends on the distance and the used projection. + * * @function * @param {GeoJSON|GeometryCollection} geojson object to be translated * @param {number} distance length of the motion; negative values determine motion in opposite direction