The JMap layer id
The new selectability property value for the layer
Optional
ignoreVisibility: booleanIf false or unspecified will make sure that the layer is visible
Error if no layer found for the id or if it is not a vector layer
// make layer id=5 selectable
JMap.Layer.setSelectabilityById(5, true)
// make layer id=3 unselectable (will clear the pre-existing selection if present)
JMap.Layer.setSelectabilityById(3, false)
JMap.Layer.setSelectabilityById
Set the selectability property of the layer.
If it's true, the layer's features can be selected on the map.