geosolutions-it / MapStore2

The solution to create and share maps, dashboards, geostories with 3D support on the web. And it is open-source too!
https://mapstore.geosolutionsgroup.com/
Other
515 stars 402 forks source link

Legend filtering for GeoServer WMS layers #10684

Open allyoucanmap opened 5 days ago

allyoucanmap commented 5 days ago

Description

The GetLegendGraphic request for a WMS GeoServer layer allow to filter the legend items based on the map extension and additional filters applied to the layer (eg. CQL filters). When a WMS layer has a filter applied the legend should update and show only the filtered legend items entries. This task includes following actions:

The aim of this issue is to have consistency on the legend and the content visualized on the map and print output.

In this comment there is a working configuration for GeoServer GetLegend graphic request. We should apply this configuration only when the serverType property of the layer is undefined or geoserver

What kind of improvement you want to add? (check one with "x", remove the others)

Other useful information