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

Map Composer - Legend does not display my layer (when using Only show items inside linked map with Data-defined Size Legend) #50301

Open
2 tasks done
arno974 opened this issue Sep 23, 2022 · 4 comments · May be fixed by #57461
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

@arno974
Copy link

arno974 commented Sep 23, 2022

What is the bug or the crash?

When using a point layer with the point size defined by attributes (to make proportional circles), if I use the Only show items inside linked map option, my layer disappear from the legend even if the layer is displayed on the map.

Before checking Only show items inside linked map

image

After checking Only show items inside linked map

image

Steps to reproduce the issue

  1. Add a point layer
  2. Specify a style for the point layer where the size is defined by attributes (using the assistant)
  3. In map Composer add a map and a legend
  4. Check Only show items inside linked map

Versions

3.26.3.1

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@arno974 arno974 added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Sep 23, 2022
@agiudiceandrea agiudiceandrea added the Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks label Sep 23, 2022
@agiudiceandrea
Copy link
Contributor

@arno974, are you actually using a point layer with "the point size defined by attributes" or instead with Pie Chart Diagrams?
If the latter, I can confirm the issue.

@arno974
Copy link
Author

arno974 commented Sep 23, 2022

@agiudiceandrea , I use a point layer with "the point size defined by attributes".

@arno974 arno974 changed the title Map Composer - Legend does not display my layer (Only show items inside linked map) Map Composer - Legend does not display my layer (when using Only show items inside linked map) Sep 23, 2022
@arkottke
Copy link

I also get this bug. I would say that a better way to describe this bug is that a "Data-defined Size Legend" is not shown if the "Only show items inside linked map" is enabled.

@arno974 arno974 changed the title Map Composer - Legend does not display my layer (when using Only show items inside linked map) Map Composer - Legend does not display my layer (when using Only show items inside linked map with Data-defined Size Legend) Feb 15, 2023
@wonder-sk
Copy link
Member

This may be a bit tricky - what should QGIS show when "Only show items inside linked map" is enabled? I can see several options what to show:

  1. always show data-defined legend vs only show it when at least one symbol from that legend is visible
  2. full data-defined legend vs partial legend - show all sizes in the data-defined legend or only the relevant sizes for symbol in the current map view

My gut feeling is that from (1) I would choose to show data-defined legend only when at least one symbol is visible on the map, and from (2) I would choose to always show the full data-defined legend. But I am curious what others think...

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

Successfully merging a pull request may close this issue.

4 participants