-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
"Add a Legend" adds ALL the layers in the project instead of just the visible or locked ones #21617
Comments
Author Name: Nyall Dawson (@nyalldawson) Not a regression or broken new feature, so not a blocker
|
Author Name: Harrissou Santanna (@DelazJ) You may be right Nyall, but i'm not sure this should be set as normal. Combined to the "filtering by map content" issues and the preset issue discussed in #21467, this leads designing (and keeping up to date) a complete composition, despite its nice features, painful imho. it should be set as high. |
Author Name: Nyall Dawson (@nyalldawson) High is used for issues which cause data loss or crashes, so normal is the right priority. I agree though that the described behavior would be a big improvement. |
Author Name: Martin Dobias (@wonder-sk) I think in order to fix this issue and the related issues, we will need to improve the layer tree model class to support flexible filtering of its items. Currently it only allows filtering of legend items within layers, which is not enough to allow hiding of layer items or group items. Unfortunately this is not feasible to add just before the LTR as the implementation will take a bit of time and there is a high risk of introducing some new bugs. Anyway, with the advanced filtering, it should be quite straightforward to add nice features like 'quick find' box where the layer tree would get filtered as you type... |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman) End of life notice: QGIS 2.18 LTR Source:
|
Author Name: Harrissou Santanna (@DelazJ)
Original Redmine Issue: 13575
Affected QGIS version: master
Redmine category:map_composer/printing
Most of the times, when you add legend to a map, it's about features that are shown in it. You only care about layers that are displayed or the ones that should be displayed. But in QGIS last releases, "Add a legend" tool adds ALL the layers in the project, without considering if they are visible or not, if they cover the map item extent or not.
Adding a legend in a big project means therefore that you have to spend a lot of time removing the unwanted layers and groups. This is really time consuming and imho an umproductive behaviour.
"Filtering legend by the map content" is neither a quick solution considering bug report #21047 or #19589.
There has been a fix for a kind of bug (see #16228), reason why I set this as a regression ( even if it was against 2.4). The best behaviour imho is that when a legend is added, it should :
The Auto-update option, when active, will keep updated these layer's styles or the list of locked layers if changed (using a preset for example).
Related issue(s): #19589 (relates), #21047 (relates)
Redmine related issue(s): 11293, 12969
The text was updated successfully, but these errors were encountered: