The location object to check
let location = { x: 10, y: 10 }
// The following instruction will not throw an error
JMap.Geometry.checkLocation(location)
location = {} // empty object
// The following instruction will throw an error
JMap.Geometry.checkLocation(location)
JMap.Geometry.checkLocation
Throw an error if the provided parameter is not a valid location.