• JMap.Map.Selection.selectOnOneLayerFromLine

    Select for specific layer its features that intersect the line.

    Parameters

    Returns GeoJSON.Feature[]

    The features array

    Throws

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

    Example

    // Process a selection on the map for layer id=4,
    // selecting features that intersect the line
    JMap.Map.Selection.selectOnOneLayerFromLine(
    4, // The layer id
    [
    [ 34.23, 55.5 ],
    [ 36.24, 14.9 ],
    [ 45.23, 25.2 ]
    ]
    )