The polygon
Optional
params: JMapSelectionParamsselection parameters, see JMapSelectionParams
The new feature selection
Error if polygon format is not good
// 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
])
JMap.Map.Selection.selectOnAllLayersFromPolygon
Select for all layers the features that intersect the polygon.