Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Commit

Permalink
set first coordinates instead of unshifting from the input
Browse files Browse the repository at this point in the history
this ensures that the first point in a `LineString` isn't removed. fixes #9
  • Loading branch information
nevi-me committed Apr 24, 2016
1 parent d2ff566 commit e17ecb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geojson-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ var complexify = function (linestring, distance) {
result = [],
points = [],
d;
cur = linestring.shift();
cur = linestring[0];
result.push(cur);
points.push(cur);
// variables used in the loop
Expand Down

0 comments on commit e17ecb7

Please sign in to comment.