Skip to content

#12466: Enhancements to Dynamic filter functionality - #12471

Merged
allyoucanmap merged 7 commits into
geosolutions-it:masterfrom
dsuren1:#12466_enhance
Jun 18, 2026
Merged

allyoucanmap merged 7 commits into
geosolutions-it:masterfrom
dsuren1:#12466_enhance

Conversation

@dsuren1

@dsuren1 dsuren1 commented Jun 8, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR enhances the dynamic filter functionality by allowing users to create a global widget that enables preselection of a layer from the list of layers available on the map.

  • Allows users to preselect a layer before creating the filter and reselect a different layer from the list of layers available on the map.
  • Adds support for configuring a description from the Dynamic Filter layout panel.
  • Allows filters to be enabled or disabled directly from the widget.
  • Allows the filter to be expanded or collapsed directly from the widget.

Please check if the PR fulfills these requirements

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

  • Enhancement

Issue

What is the current behavior?

What is the new behavior?

  • Users can create a global Dynamic Filter widget with a preselected layer from the list of layers available on the map.

  • The selected layer can be changed at any time by choosing a different layer from the available map layers.

  • A description can be configured through the Dynamic Filter Layout panel and displayed in the widget.

  • Filters can be enabled or disabled directly from the widget.

  • The filter panel can be expanded or collapsed directly from the widget.

    enhance_dynamic.mp4

Pending

  • Zoom to filtered features
  • Open layer filter panel for attributes modification
  • Export of filtered data from the widget

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

@dsuren1 dsuren1 added this to the 2026.02.00 milestone Jun 8, 2026
@dsuren1
dsuren1 requested a review from allyoucanmap June 8, 2026 06:00
@dsuren1 dsuren1 added the New Feature used for new functionalities label Jun 8, 2026
@cla-bot cla-bot Bot added the CLA Ready label Jun 8, 2026
@dsuren1 dsuren1 removed their assignment Jun 8, 2026
@dsuren1 dsuren1 linked an issue Jun 8, 2026 that may be closed by this pull request
5 tasks done

@allyoucanmap allyoucanmap left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I noticed some additional inconsistencies that we should probably address now:

  • creating a widget from a layer does not allow to edit and change the layer. I think this should be allowed. Creation from a layer should skip the catalog as is doing now and applying the selected layer in the filter but it should allow the modification
  • creating a widget from global is working but it would be nice if we get a feedback if the layer is supported before moving to the next step (similar to dashboard)
    • open demo map #/viewer/60692
    • create a widget from global
    • select verdepubblico
    • go next step
    • not supported page without possibility to go back (It would be nice a check before going on next step as in dashboard)

Comment thread web/client/plugins/WidgetsBuilder.jsx Resolved
Comment thread web/client/utils/WidgetsUtils.js Resolved
@dsuren1

dsuren1 commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

@allyoucanmap

  • not supported page without possibility to go back (It would be nice a check before going on next step as in dashboard)

In the Map Viewer, unsupported layers currently redirect users to the error panel. For global widget creation, we can perform a pre-check on the layer selection page. However, this is not possible for preselected-layer widget creation because there is no layer selection step.

To keep both flows consistent, we could reuse the existing error panel logic for unsupported layers and provide a Back button so users can return to the previous step and continue the widget creation process.

Your thoughts?

image

@tdipisa tdipisa added enhancement and removed New Feature used for new functionalities labels Jun 18, 2026
@tdipisa tdipisa modified the milestones: 2026.02.00, 2026.03.00 Jun 18, 2026
@dsuren1
dsuren1 requested a review from allyoucanmap June 18, 2026 10:22
@allyoucanmap
allyoucanmap merged commit 61e34fa into geosolutions-it:master Jun 18, 2026
12 checks passed
@tdipisa tdipisa modified the milestones: 2026.03.00, 2026.02.00 Jun 18, 2026
@ElenaGallo

Copy link
Copy Markdown
Contributor

@dsuren1 When the Default expanded option is disabled, and after the filter widget has been created, editing the widget causes the filter to no longer be visible in the preview.

filter.collap.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhancements to Dynamic filter functionality

4 participants