• JMap.Geometry.checkBbox

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

    Parameters

    Returns void

    Example

    let bbox = { sw: { x: 10, y: 10 }, ne: { x: 12, y: 12 } }
    // The following instruction will not throw an error
    JMap.Geometry.checkBbox(bbox)

    bbox = { sw: { x: 10, y: 10 } } // missing "ne" attribute
    // The following instruction will throw an error
    JMap.Geometry.checkBbox(bbox)