• JMap.Map.Selection.getSelectedFeaturesForLayer

    Returns the current selected features for a specific JMap layer.

    Parameters

    Returns GeoJSON.Feature[]

    an array of GeoJSON features

    Example

    // returns the current selected features for layer 3
    JMap.Map.Selection.getSelectedFeaturesForLayer(3)