• JMap.Geometry.checkLocation

    Throw an error if the provided parameter is not a valid location.

    Parameters

    • location: JLocation

      The location object to check

    Returns void

    Example

    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)