an array of JLayerSetLayersSelectabilityParams
Error if any layer is not found for any of the ids, or if any of the layers is not a vector layer
// show layers id=5 and 6, hide layer 3
JMap.Layer.setLayersSelectability([
{layerId: 5, selectability: true},
{layerId: 6, selectability: true},
{layerId: 3, selectability: false}
])
JMap.Layer.setLayersSelectability
Set the selectability property of multiple layers.
For each layer:
If it's a JMap layer, it applies the selectability to it.
The selectability property is initialy defined on the project, and can be changed by the user through the JMap Server NG Core library.
If this property is true, the layer's features can be selected on the map.