MapStore2 icon indicating copy to clipboard operation
MapStore2 copied to clipboard

#10026: Interactive legend for TOC layers [Vector layer part]

Open mahmoudadel54 opened this issue 1 year ago • 0 comments

Description

In this PR, interactive legend functionality for WMS/WFS layers is implemented. User can configure enabling the interactive legend for vector layer from display tab in layer settings. Legend filter will be reset if user change the style and user can reset it manually by clicking on the selected filter legend again to remove the legend filter.

This PR includes:

  • Adding interactive legend for vector layers
  • Add checkbox for enable the interactive legend for vector into layer settings
  • handle the logic of filter by legend for vector layer in case of 2d openlayer map and 3d cesium map
  • write unit tests based on code changes

Please check if the PR fulfills these requirements

  • [x] The commit message follows our guidelines: https://github.com/geosolutions-it/MapStore2/blob/master/CONTRIBUTING.md
  • [x] Tests for the changes have been added (for bug fixes / features)
  • [ ] Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (check one with "x", remove the others)

  • [ ] Bugfix
  • [x] Feature
  • [ ] Code style update (formatting, local variables)
  • [ ] Refactoring (no functional changes, no api changes)
  • [ ] Build related changes
  • [ ] CI related changes
  • [ ] Other... Please describe:

Issue

#10026

What is the current behavior? #10026

What is the new behavior? User can add vector layer and enable the interactive legend to enable him/her to filter the layer if user change style that includes filter expressions like classification style for example.

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • [ ] Yes, and I documented them in migration notes
  • [x] No

Other useful information

mahmoudadel54 avatar Apr 11 '24 08:04 mahmoudadel54