Description
For WMS layers in TOC it would be interesting to enhance the legend to be interactive so that it is possible for example to switch off layer features belonging to certain classes. For this purpose the legend should be retrieved in JSON format and the UI component managed accordingly.
This is an investigation issue where it is requested to details the way to go with involved limitations if any.
To consider:
- JSON format is supported only by GS (to confirm)
- There should be an option to activate this new legend format in MS (the default is the current one). In Catalog tool for example
- Evaluate the possibility to uniform this functionality also for WFS/Vector layers client side.
What kind of improvement you want to add? (check one with "x", remove the others)
Other useful information
Sample of request:
https://gs-stable.geo-solutions.it/geoserver/wms?service=WMS&request=GetLegendGraphic&format=application/json&height=50&width=100&layer=gs%3Aus_states&style=pophade&version=1.3.0&SLD_VERSION=1.1.0&LEGEND_OPTIONS=forceLabels%3Aon&LANGUAGE=en&SCALE=36978669
Description
For WMS layers in TOC it would be interesting to enhance the legend to be interactive so that it is possible for example to switch off layer features belonging to certain classes. For this purpose the legend should be retrieved in JSON format and the UI component managed accordingly.
This is an investigation issue where it is requested to details the way to go with involved limitations if any.
To consider:
What kind of improvement you want to add? (check one with "x", remove the others)
Other useful information
Sample of request:
https://gs-stable.geo-solutions.it/geoserver/wms?service=WMS&request=GetLegendGraphic&format=application/json&height=50&width=100&layer=gs%3Aus_states&style=pophade&version=1.3.0&SLD_VERSION=1.1.0&LEGEND_OPTIONS=forceLabels%3Aon&LANGUAGE=en&SCALE=36978669