• JMap.Map.Selection.removeFeaturesFromLayerSelection

    Remove from current layer selection the provided feature(s).

    Don't cancel previous selection, just remove feature(s) from it.

    Parameters

    • layerId: JId

      The JMap layer id

    • featureIds: JId | JId[]

      The feature id(s) that will be remove from the layer selection

    Returns void

    Throws

    Error if layer is not found or feature id(s) format is not good

    Example

    // Remove one feature (id = "234") from layer 4 selection
    JMap.Map.Selection.removeFeaturesFromLayerSelection(4, "234")

    // Remove 2 features (id = "234" and "567") from layer 4 selection
    JMap.Map.Selection.removeFeaturesFromLayerSelection(4, [ "234", "567" ])