• JMap.Application.Selection.getDisplayedLayerId

    The selection of only one layer can be diplayed at a time.

    This function returns the id of the layer for which the selection is displayed.

    Returns JId

    Example

    // return the layer id of the displayed selection
    JMap.Application.Selection.getDisplayedLayerId()