Open just-ajs opened 1 year ago
@just-ajs though without seeing much details, from your little code I believe the issue could be due to mercator projection when you translate your polygon way up north. That is a known problem on web - i.e. flat - maps.
Hi @just-ajs. Do you still have the geojson used to generate the screenshots above? Would you mind attaching them to this issue so we can reproduce it?
Turf 6.5.0
TransformTranslate distorts the shape when translated across bigger distances, this is visible in this example, when used transformTransalte with parameters 2000, 66.
const leningrTranslated = transformTranslate(leningr.data, 2000, 66);
The original shape:
And transformed shape: