Skip to content

Commit

Permalink
fix: Validate coordiante not only by Lat/Lon
Browse files Browse the repository at this point in the history
  • Loading branch information
Hsieh Chin Fan committed Sep 16, 2024
1 parent 974f5db commit 0c71243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BaseRenderer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default class {
// TODO xy value other than WGS84
try {
const [x, y] = JSON.parse(value)
return !isNaN(x) && !isNaN(y) && x <= 180 && x >= -180 && y <= 90 && y >= -90
return !isNaN(x) && !isNaN(y)
} catch {
return false
}
Expand Down

0 comments on commit 0c71243

Please sign in to comment.