• JMap.Layer.getName

    Returns the name of the layer.

    Parameters

    • layerId: JId

      The JMap layer id

    Returns string

    Throws

    Error if no layer found for the id

    Example

    // returns the name of layer id=3
    JMap.Layer.getName(3)