• JMap.Layer.getLayers

    Returns an array with JMap layers.

    The array order is the same as the one in the tree.

    If no project is loaded, returns en empty array.

    Returns JLayer[]

    Example

    // returns all JMap layers
    JMap.Layer.getLayers()