• JMap.Map.Selection.selectOnAllLayersFromPolygon

    Select for all layers the features that intersect the polygon.

    Parameters

    Returns JMapSelection

    The new feature selection

    Throws

    Error if polygon format is not good

    Example

    // Process a selection on the map for all layers,
    // select all features that intersect the polygon
    JMap.Map.Selection.selectOnAllLayersFromPolygon([
    [ 34.23, 55.5 ],
    [ 36.24, 14.9 ],
    [ 45.23, 25.2 ],
    [ 34.23, 55.5 ] // first and last point of a polygon must be equals
    ])