• JMap.Geometry.bboxIntersect

    Returns true if the first bbox intersect the second one.

    Parameters

    Returns boolean

    Example

    const bbox1 = { sw: { x: 10, 10 }, sw: { x: 20, 20 }}
    const bbox2 = { sw: { x: 12, 12 }, sw: { x: 14, 18 }}
    // The method will return true
    const areIntersecting = JMap.Geometry.bboxIntersect(bbox1, bbox2)