I have a layer group with multiple layers as following
In Angular I created an OpenLayers map adding the group layer like this:
this.capaPropia =
new ImageLayer({
source: new ImageWMS({
url: environment.baseUrl + 'handlerGeoserver.ashx',
params: {LAYERS: 'v_expedientesAgrupados'},
projection: proyeccion
})
});
In my app I have 4 checkboxes, one for each layer. I need to display only the layers of the group layer that are checked.
Is it possible to filter layers from a group layer on GeoServer (with cql_filter or similar)? If so, can this be done with OpenLayers?