From 0c71243c922b8c88a588711c95fd937de112db24 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Mon, 16 Sep 2024 22:03:02 +0800 Subject: [PATCH] fix: Validate coordiante not only by Lat/Lon --- src/BaseRenderer.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BaseRenderer.mjs b/src/BaseRenderer.mjs index 66a8ea5..94fbe81 100644 --- a/src/BaseRenderer.mjs +++ b/src/BaseRenderer.mjs @@ -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 }