• JMap.Layer.getById

    Returns the JMap layer having the id.

    Parameters

    • layerId: JId

      The JMap layer id

    Returns JLayerTreeElement

    Throws

    Error if no layer found for the id

    Example

    // returns the JMap layer id=3
    JMap.Layer.getById(3)