Skip to content

Commit 1f50d79

Browse files
committed
fix: wrap longitude
1 parent 67a4d48 commit 1f50d79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/om-protocol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const getValueFromLatLong = (
9595
} else {
9696
const { index, xFraction, yFraction } = getIndexAndFractions(
9797
lat,
98-
lon,
98+
((((lon + 180) % 360) + 360) % 360) - 180,
9999
domain,
100100
projectionGrid,
101101
ranges,

0 commit comments

Comments
 (0)