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

Improving filtering capabilities for widgets #9098

Closed
1 of 2 tasks
tdipisa opened this issue Apr 14, 2023 · 4 comments · Fixed by #9514
Closed
1 of 2 tasks

Improving filtering capabilities for widgets #9098

tdipisa opened this issue Apr 14, 2023 · 4 comments · Fixed by #9514
Assignees
Milestone

Comments

@tdipisa
Copy link
Member

tdipisa commented Apr 14, 2023

Description

If a dashboard widget is connected to a map it is currently filtered based on the extent of the map view.
This task is aimed to provide the ability to define a spatial filter for dashboard widgets (charts, table and counter) so that it is possible to define a predefined filter without connecting the widget with the map one.

For viewer widgets it should also be possible through an option to use the filter already defined with the Filter Layer tool so that you don't need to reconfigure it from scratch for the widget.

Acceptance criteria

  • Provide the ability to configure a spatial filter for dashboard widgets (UI design included)
  • Provide an option for viewer widgets to reuse the filter already defined in Filter Layer tool

Other useful information

summary info here

@tdipisa tdipisa added this to the 2023.02.00 milestone Apr 14, 2023
@tdipisa tdipisa self-assigned this Apr 14, 2023
@tdipisa tdipisa assigned MV88 and unassigned tdipisa Aug 21, 2023
@tdipisa tdipisa modified the milestones: 2023.02.00, 2024.01.00 Aug 21, 2023
@MV88
Copy link
Contributor

MV88 commented Aug 22, 2023

For viewer widgets it should also be possible through an option to use the filter already defined with the Filter Layer tool so that you don't need to reconfigure it from scratch for the widget.

This is already in place and currently this option is the one desired because it acts in and with any filters defined in the chart wizard
image

@MV88
Copy link
Contributor

MV88 commented Aug 22, 2023

@tdipisa @allyoucanmap @offtherailz
Here is some design proposals:

proposal 1

  • the idea would be to store somehow the spatial filter generated with a dedicated name
  • [ideally] one can also upload a vector layer like a geojson or insert through a field a wkt string
    proposal 1

proposal 2

  • same as before but the map is on the left and the rest of the dashboard is disabled temporarily
  • we can also avoid to disable it
    proposal 2

proposal 3

  • probably the simplest solution, but the user has to redraw everytime the spatial filter and cannot share it between widgets
    proposal 3

@offtherailz
Copy link
Member

Here reporting only my ideas:

Now we are using the same query panel of the map, but in this context the map is not present.
The query panel is now pluggable, so we can imagine to create a custom panel to embed a map, similar to the one for the area of interest, but that shows, as well as activated, a map to draw the area of interest.
From the UI the best approach is to show the map bigger on the right. I think it is feasable (with a Portal or similar), anyway we should give it a try.

@MV88
Copy link
Contributor

MV88 commented Sep 13, 2023

So the direction is proposal 3, but with a big map in the right,
@tdipisa do you confirm?

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

Successfully merging a pull request may close this issue.

4 participants