Skip to content

Interactive legend for TOC layers [Vector Layer part] #10737

Description

@mahmoudadel54

Description

Vector layers do not have the concept of filtering.
These could be the needed tasks:

  • Design of the filtering workflow that could be an adaptation of the existing layer filter configuration of WMS/WFS layers
  • 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:

This is a summary of the expected implmentaion steps:

1- For the UI part:

  • handle adding checkbox in layer settings in TOC for enabling/disabling interactive legend [the part in layer settings in TOC --> common with WFS]
  • handle the same behaviour in WMS of hovering effect on the legend items if classified on TOC and select effect as well [Add interactivity to the Vector Legend] --> common with WFS

2- For the logic:

  • Now user can create a style includes rules [classification for example] which is on geostyler format
  • The filter implementation will use an existing approach of filtering vector layer features based on geostyler expression so it can be user when user clicks on legend item to implement filter process (This should be done inside the specific VectorLayer implementation where possible)
  • change in style/disable interactive legend from layer settings

Other useful information

Activity

  1. added
    New Feature
    on Jan 7, 2025
  2. self-assigned this
    on Jan 7, 2025
  3. added this to the 2025.01.00 milestone on Jan 7, 2025
  4. added a commit that references this issue on Feb 3, 2025
  5. added a commit that references this issue on Feb 21, 2025
  6. added a commit that references this issue on Feb 21, 2025
  7. self-assigned this
    on Feb 21, 2025
  8. added a commit that references this issue on Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

AcceptedNew Featuredone

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions