• JMap.Map.Selection.clearSelection

    Clear all selection.

    If a layer id is provided, clear only the layer selection, else clear selection of all layers.

    Parameters

    • Optional layerId: JId

      The JMap layer id

    Returns void

    Throws

    Error if a layer id is provided but not found

    Example

    // Clear selection of layer 4
    JMap.Map.Selection.clearSelection(4)

    // Clear selection of all layers
    JMap.Map.Selection.clearSelection()