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

"Add a Legend" adds ALL the layers in the project instead of just the visible or locked ones #21617

Closed
qgib opened this issue Oct 12, 2015 · 6 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks

Comments

@qgib
Copy link
Contributor

qgib commented Oct 12, 2015

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


@qgib
Copy link
Contributor Author

qgib commented Oct 12, 2015

Author Name: Nyall Dawson (@nyalldawson)


Not a regression or broken new feature, so not a blocker


  • priority_id was changed from Severe/Regression to Normal

@qgib
Copy link
Contributor Author

qgib commented Oct 12, 2015

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.

@qgib
Copy link
Contributor Author

qgib commented Oct 12, 2015

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.

@qgib
Copy link
Contributor Author

qgib commented Feb 24, 2016

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...

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • regression was configured as 0
  • easy_fix was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Mar 9, 2019

Author Name: Giovanni Manghi (@gioman)


End of life notice: QGIS 2.18 LTR

Source:
http://blog.qgis.org/2019/03/09/end-of-life-notice-qgis-2-18-ltr/


  • resolution was changed from to end of life
  • status_id was changed from Open to Closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks
Projects
None yet
Development

No branches or pull requests

1 participant