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 that intersect the line
JMap.Map.Selection.selectOnOneLayerFromLine(
4, // The layer id
[
[ 34.23, 55.5 ],
[ 36.24, 14.9 ],
[ 45.23, 25.2 ]
]
)
JMap.Map.Selection.selectOnOneLayerFromLine
Select for specific layer its features that intersect the line.