The JMap layer id
The line
Optional
params: JMapSelectionParamsselection parameters, see JMapSelectionParams
The features array
Error if layer is not found or if line format is not good
// 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 ]
]
)
JMap.Map.Selection.selectOnOneLayerFromPolygon
Select for specific layer its features that intersect the line.