From a82e394858fd16f34daacfc926058448fd97a1dd Mon Sep 17 00:00:00 2001 From: David Manthey Date: Thu, 26 May 2022 14:50:59 -0400 Subject: [PATCH] fix: Fix an issue with the line hit test. --- src/lineFeature.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lineFeature.js b/src/lineFeature.js index bc04e2f479..128cd9df68 100644 --- a/src/lineFeature.js +++ b/src/lineFeature.js @@ -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); }