Repository navigation
Description
Description
Technically WFS could follow the same workflow of WMS in relation to filtering even if it’s not the optimal solution in terms of performance and request. It would be better to filter directly content already downloaded but this means a review of the current workflow so we could think just these additional tasks:
- Convert the WFS style filter in CQL to be applied to the request
- Add interactivity to the Vector Legend
- For any change to the style it is requested to follow the same behavior implemented with #10236 (see also #10684: Legend filtering for GeoServer WMS layers #10718 (comment)) that for this issue concerns only in the following scenarios:
- editing of the selected style and changing the rule with the visual style editor (internal editing): the behavior should be the same as reported in #10684: Legend filtering for GeoServer WMS layers #10718 (comment) and so a warning should appear when the user comes back to the TOC after having changed the style
This is a summary of the expected implementation steps:
1- For the UI part:
- handle adding checkbox in catalog and layer settings in TOC for enabling/disabling interactive legend [the part in layer settings in TOC --> common with Vector]
- handle the same behaviour in WMS of hovering effect on the TOC legend items if they present a filter and implement the select effect as well [Add interactivity to the Vector Legend] --> common with Vector
2- For the logic:
- Now user can create a style includes rules [classification for example] which is on geostyler format
- in general for WFS filter layer, it is using cql filter expression to filter the layer into the server sending the CQL
- It will need a converter from geostyler [which comes from classification style for example] to cql that will be needed when user clicks on legend item to implement filter process
- change in style/disable interactive legend from layer settings will reset the filter like WMS
Activity
geosolutions-it#10736: Interactive legend for TOC layers [WFS Layer p…
geosolutions-it#10736: fix FE unit tests for CommonAdvancedSettings
geosolutions-it#10736: Interactive legend for TOC layers [WFS Layer p…
geosolutions-it#10736: fix issue due to merge master
geosolutions-it#10736: fix FE unit test failure
#10736: Interactive legend for TOC layers [WFS Layer part] (#10748)
allyoucanmap commentedon Jan 27, 2025
@tdipisa (cc @mahmoudadel54) after merging I noticed there are not documentation for the following parts:
experimentalInteractiveLegendoption, now the comment says// If true it enables interactive legend for GeoServer WMS layershttps://docs.mapstore.geosolutionsgroup.com/en/latest/developer-guide/local-config/tdipisa commentedon Jan 27, 2025
@allyoucanmap thank you for informing us about that.
@mahmoudadel54 please create a new issue for the above and connect it to this. Then you can raise a PR for providing what's missing.
geosolutions-it#10736: fix issue of not hiding the enabled/disabled f…
geosolutions-it#10736: fix FE test failure in styleeditor-test file +…
geosolutions-it#10736: fix issue of not hiding the enabled/disabled f…
geosolutions-it#10736: fix issue of not hiding the enabled/disabled f…
#10736: fix issue of not hiding the enabled/disabled filter icon in c…
Sync-Fork-4-01-25 (#35)