• JMap.Map.Selection.getSelectedFeatureIdsForLayer

    Returns the current selected feature ids for a specific JMap layer.

    This function is the equivalent of that code :

    // returns the same as JMap.Map.getSelectedFeatureIdsForLayer(3)
    JMap.Map.Selection
    .getSelectedFeaturesForLayer(layerId)
    .map(feature => feature.id)

    Parameters

    Returns string[]

    Example

    // returns the current selected feature ids for layer 3
    JMap.Map.Selection.getSelectedFeatureIdsForLayer(3)