Skip to content

Filter component #2304

Description

@jokd

Is your feature request related to a problem? Please describe.
I am building a plugin (or control) that shows a "double" slider when a certain layer is visible, enabling the user to filter features in a layer based on the values of the sliders. While at it I also created a slider that simply toggles an array of layers(eg an array of orthophotos from different years) so instead of picking layers in the legend you can use the slider. Considering this and other ways of filtering a layer, maybe we should create a filter component that handles various types of layer filtering, providing a consistent UI experience and ease developing different filter functions.

Describe the solution you'd like
A button in the legend or submenu that triggers a filter window (for layers with a configured filter)

Describe alternatives you've considered
Using a function specific ui solution.

A mockup of what it could look like but with a more suitable icon. Black icon if there is a filter and origo blue when a filter is active. That way you can easily see that a filter is active without keeping the window open.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Further discussion neededNeeds further discussion or information. Actionable label cannot be set.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions