• JMap.Geometry.getPolygonFeatureFromBbox

    Returns a polygon feature corresponding to the boundary box.

    Parameters

    Returns GeoJSON.Feature<GeoJSON.Polygon>

    Example

    const bbox = { sw: { x: 10, y: 10 }, ne: { x: 20, y: 20 }}
    // The method will return the polygon corresponding to the bbox
    const polygonFeature = JMap.Geometry.getPolygonFeatureFromBbox(bbox)