• JMap.Layer.getEPSG4326Extent

    Returns the extent of the layer in ESPG:4326 coordinates

    Parameters

    • layerId: JId

      The JMap layer id

    Returns JBoundaryBox | null

    Example

    // returns the bounding box (JBoundaryBox) of the layer ID 3 in decimal degrees

    console.log("WGS84 extent of layer id="3" is: ", JMap.Layer.getEPSG4326Extent(3))

    Throws

    Error if no layer found for the id or if layer is a group