turf
turf copied to clipboard
Along returns out of bounds coordinates when antimeridian crossed
var line = turf.lineString([[-82.461, 35.3187], [144.985, -37.813]]);
var segment = turf.along(line, 1500);
console.log(segment.geometry.coordinates);
this outputs 262.6856469517484, 30.179864583770968
Because of this, when I do the LineString in MapBox between [-82.461, 35.3187]
and 262.6856469517484, 30.179864583770968
, it looks like this:
Isn't it supposed to output -97.314353, 30.179864583770968
instead?
@dimon82 did you ever get some hint why this is? What was your solution?