• JMap.Geometry.isValidLocation

    Returns false if the provided parameter is not a valid location.

    Parameters

    • location: undefined | JLocation

      The location object to check

    Returns boolean

    Example

    let location = { x: 10, y: 10 }
    // The following instruction will return true
    JMap.Geometry.isValidLocation(location)

    location = {} // empty object
    // The following instruction will return false
    JMap.Geometry.isValidLocation(location)