• JMap.Geometry.isValidBbox

    Returns false if the provided parameter is not a valid boundary box.

    Parameters

    Returns boolean

    Example

    let bbox = { sw: { x: 10, y: 10 }, ne: { x: 12, y: 12 } }
    // The following instruction will return true
    JMap.Geometry.isValidBbox(bbox)

    bbox = { sw: { x: 10, y: 10 } } // missing "ne" attribute
    // The following instruction will return false
    JMap.Geometry.isValidBbox(bbox)