diff --git a/packages/geo/src/lib/map/shared/map.utils.ts b/packages/geo/src/lib/map/shared/map.utils.ts index 828ab06345..d2f3c86bf9 100644 --- a/packages/geo/src/lib/map/shared/map.utils.ts +++ b/packages/geo/src/lib/map/shared/map.utils.ts @@ -320,13 +320,21 @@ export function stringToLonLat( }; } } - - return { - lonLat, - message: '', - radius: radius ? parseInt(radius, 10) : undefined, - conf: conf ? parseInt(conf, 10) : undefined - }; + if (Math.abs(lonLat[0]) <= 180 && Math.abs(lonLat[1]) <= 90) { + return { + lonLat, + message: '', + radius: radius ? parseInt(radius, 10) : undefined, + conf: conf ? parseInt(conf, 10) : undefined + }; + } else { + return { + lonLat: undefined, + message: 'Coordinate out of Longitude/Latitude bounds', + radius: undefined, + conf: undefined + }; + } } /**