• JMap.Map.Selection.selectOnOneLayerAtLocation

    Select for specific layer its features that are at the location.

    Same behavior as if you were clicking on the map in order to select features, but for only one layer.

    Parameters

    Returns GeoJSON.Feature[]

    The features array

    Throws

    Error if layer is not found or location format is not good

    Example

    // Process a selection on the map for layer id=4, at the location in params
    JMap.Map.Selection.selectOnOneLayerAtLocation(4, { x: 34.23, y: 55.5 })