• JMap.Map.Selection.selectOnOneLayerFromPolygon

    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 intersecting the line
    JMap.Map.Selection.selectOnOneLayerFromPolygon(
    4, // The layer id
    [
    [ 34.23, 55.5 ],
    [ 36.24, 14.9 ],
    [ 45.23, 25.2 ],
    [ 34.23, 55.5 ]
    ]
    )