Skip to content

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

@mahmoudadel54

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

Metadata

Metadata

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions