Skip to content

Commit

Permalink
Merge pull request #1214 from OpenGeoscience/fix-line-hit
Browse files Browse the repository at this point in the history
fix: Fix an issue with the line hit test.
  • Loading branch information
manthey authored May 26, 2022
2 parents 6b1506e + a82e394 commit c77ab78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lineFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ var lineFeature = function (arg) {
const current = lineRecord[j];
let p = posFunc(current, j, d, index);
if (onlyInvertedY) {
p.y = -p.y;
p = {x: p.x, y: -p.y};
} else if (gcs !== mapgcs) {
p = transform.transformCoordinates(gcs, mapgcs, p);
}
Expand Down

0 comments on commit c77ab78

Please sign in to comment.