• JMap.Geometry.getBboxFromPolygon

    Returns the polygon boundary box.

    Parameters

    Returns JBoundaryBox

    Example

    const polygon = [[ 10, 12], [12, 23], [34, 12], [ 10, 12]]
    // The method will return the polygon boundary box
    const bbox = JMap.Geometry.getBboxFromPolygon(feature)