Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#10736: Interactive legend for TOC layers [WFS Layer part] #10748

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

mahmoudadel54
Copy link
Contributor

@mahmoudadel54 mahmoudadel54 commented Jan 13, 2025

Description

This PR includes handling the functionality of interactive legend for WFS layers for mapViewer/dashboards/geostories. User can enable interactive legend from catalog or layer settings. A geostyler converter is created in this PR to handle converting from geostyler to cql.
If legend filter is applied, then user makes any change to the style --> a warning should appear when the user comes back to the TOC after having changed the style.

Please check if the PR fulfills these requirements

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

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

Issue

#10736

What is the current behavior?
#10736

What is the new behavior?
If user enables interactive legend for WFS layer via catalog or layer settings, user can filter by legend.

Breaking change

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

  • Yes, and I documented them in migration notes
  • No

Other useful information

It is experimental feature

…art]

Description:
- handle the functionality of interactive legend for WFS layers
- create geostyler converter to cql
- handle saving the legend filter of layer into layerFilter object in saving
- handle showing incompatible message in case change into filtered style
- add unit tests
- add translations
@mahmoudadel54 mahmoudadel54 added the New Feature used for new functionalities label Jan 13, 2025
@mahmoudadel54 mahmoudadel54 added this to the 2025.01.00 milestone Jan 13, 2025
@mahmoudadel54 mahmoudadel54 self-assigned this Jan 13, 2025
@mahmoudadel54 mahmoudadel54 linked an issue Jan 13, 2025 that may be closed by this pull request
Copy link
Contributor

@allyoucanmap allyoucanmap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please take a look to the inline comments.
Found an issue while testing locally:

  • When experimentalInteractiveLegend config is false in the localConfig the interactive legend is active by default and the settings are showing the Legend title without content
legend-issue-01.mp4

…art] (resolve reviews)

- fix issue of activating interactive legend even if experimentalInteractiveLegend = false in localConfig
- remove serverType check for wfs  interactivity legend display
- replace owner prop with interactive prop for wms and wfs
- handle not calling legend filter handler in case not activate the interactivity or no rule to apply
- add double check for geostyler if it is a direct array or has body in converter file
- reset miscSettings in CommonAdvancedSettings test file in afterEach
- add tranlations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Feature used for new functionalities
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Interactive legend for TOC layers [WFS Layer part]
2 participants