Make legend in QGIS only show features in the view extent?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
4
down vote

favorite
1












I am trying to create a legend in QGIS 2.18.22 so that it only shows the features that are in the current map extent in the print composer. I have been selecting the 'only show items inside current atlas feature' tick box however nothing changes.



enter image description here



I still end up with a massive legend like this even though only a fraction of those features are visible.



enter image description here



I am reluctant to clip the layer to the current view extent to solve the problem that way as when I scan to another part of the map I will have to do the same thing again and I may need to make multiple maps off this layer. Alternatively I could also remove the classifications for each legend item that isn't visible under properties in the main map view however again every time I make a map in a different area I would have to repeat this.



What is the solution to this problem?










share|improve this question























  • Are you in Atlas preview mode?
    – csk
    Aug 29 at 3:17










  • No I wasn't the Atlas preview option is greyed out for me and so I can't select it within the menu
    – glouise
    Aug 30 at 1:47
















up vote
4
down vote

favorite
1












I am trying to create a legend in QGIS 2.18.22 so that it only shows the features that are in the current map extent in the print composer. I have been selecting the 'only show items inside current atlas feature' tick box however nothing changes.



enter image description here



I still end up with a massive legend like this even though only a fraction of those features are visible.



enter image description here



I am reluctant to clip the layer to the current view extent to solve the problem that way as when I scan to another part of the map I will have to do the same thing again and I may need to make multiple maps off this layer. Alternatively I could also remove the classifications for each legend item that isn't visible under properties in the main map view however again every time I make a map in a different area I would have to repeat this.



What is the solution to this problem?










share|improve this question























  • Are you in Atlas preview mode?
    – csk
    Aug 29 at 3:17










  • No I wasn't the Atlas preview option is greyed out for me and so I can't select it within the menu
    – glouise
    Aug 30 at 1:47












up vote
4
down vote

favorite
1









up vote
4
down vote

favorite
1






1





I am trying to create a legend in QGIS 2.18.22 so that it only shows the features that are in the current map extent in the print composer. I have been selecting the 'only show items inside current atlas feature' tick box however nothing changes.



enter image description here



I still end up with a massive legend like this even though only a fraction of those features are visible.



enter image description here



I am reluctant to clip the layer to the current view extent to solve the problem that way as when I scan to another part of the map I will have to do the same thing again and I may need to make multiple maps off this layer. Alternatively I could also remove the classifications for each legend item that isn't visible under properties in the main map view however again every time I make a map in a different area I would have to repeat this.



What is the solution to this problem?










share|improve this question















I am trying to create a legend in QGIS 2.18.22 so that it only shows the features that are in the current map extent in the print composer. I have been selecting the 'only show items inside current atlas feature' tick box however nothing changes.



enter image description here



I still end up with a massive legend like this even though only a fraction of those features are visible.



enter image description here



I am reluctant to clip the layer to the current view extent to solve the problem that way as when I scan to another part of the map I will have to do the same thing again and I may need to make multiple maps off this layer. Alternatively I could also remove the classifications for each legend item that isn't visible under properties in the main map view however again every time I make a map in a different area I would have to repeat this.



What is the solution to this problem?







qgis print-composer legend qgis-2.18






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 29 at 5:15









nmtoken

7,58642763




7,58642763










asked Aug 29 at 1:49









glouise

211




211











  • Are you in Atlas preview mode?
    – csk
    Aug 29 at 3:17










  • No I wasn't the Atlas preview option is greyed out for me and so I can't select it within the menu
    – glouise
    Aug 30 at 1:47
















  • Are you in Atlas preview mode?
    – csk
    Aug 29 at 3:17










  • No I wasn't the Atlas preview option is greyed out for me and so I can't select it within the menu
    – glouise
    Aug 30 at 1:47















Are you in Atlas preview mode?
– csk
Aug 29 at 3:17




Are you in Atlas preview mode?
– csk
Aug 29 at 3:17












No I wasn't the Atlas preview option is greyed out for me and so I can't select it within the menu
– glouise
Aug 30 at 1:47




No I wasn't the Atlas preview option is greyed out for me and so I can't select it within the menu
– glouise
Aug 30 at 1:47










1 Answer
1






active

oldest

votes

















up vote
8
down vote













You can use the "Filter legend by map content" button in the print composer item properties for your legend item. The print composer legend will then only show the layers which are within your composer map view.



enter image description here






share|improve this answer
















  • 1




    Great tip. I would highlight that it will also filter out the layer classes that don't show on the screen.
    – Techie_Gus
    Aug 29 at 6:42










  • Awesome, this was what I was looking for. Thank you!
    – glouise
    Aug 30 at 1:48










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "79"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f294285%2fmake-legend-in-qgis-only-show-features-in-the-view-extent%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
8
down vote













You can use the "Filter legend by map content" button in the print composer item properties for your legend item. The print composer legend will then only show the layers which are within your composer map view.



enter image description here






share|improve this answer
















  • 1




    Great tip. I would highlight that it will also filter out the layer classes that don't show on the screen.
    – Techie_Gus
    Aug 29 at 6:42










  • Awesome, this was what I was looking for. Thank you!
    – glouise
    Aug 30 at 1:48














up vote
8
down vote













You can use the "Filter legend by map content" button in the print composer item properties for your legend item. The print composer legend will then only show the layers which are within your composer map view.



enter image description here






share|improve this answer
















  • 1




    Great tip. I would highlight that it will also filter out the layer classes that don't show on the screen.
    – Techie_Gus
    Aug 29 at 6:42










  • Awesome, this was what I was looking for. Thank you!
    – glouise
    Aug 30 at 1:48












up vote
8
down vote










up vote
8
down vote









You can use the "Filter legend by map content" button in the print composer item properties for your legend item. The print composer legend will then only show the layers which are within your composer map view.



enter image description here






share|improve this answer












You can use the "Filter legend by map content" button in the print composer item properties for your legend item. The print composer legend will then only show the layers which are within your composer map view.



enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Aug 29 at 3:14









Ben W

47619




47619







  • 1




    Great tip. I would highlight that it will also filter out the layer classes that don't show on the screen.
    – Techie_Gus
    Aug 29 at 6:42










  • Awesome, this was what I was looking for. Thank you!
    – glouise
    Aug 30 at 1:48












  • 1




    Great tip. I would highlight that it will also filter out the layer classes that don't show on the screen.
    – Techie_Gus
    Aug 29 at 6:42










  • Awesome, this was what I was looking for. Thank you!
    – glouise
    Aug 30 at 1:48







1




1




Great tip. I would highlight that it will also filter out the layer classes that don't show on the screen.
– Techie_Gus
Aug 29 at 6:42




Great tip. I would highlight that it will also filter out the layer classes that don't show on the screen.
– Techie_Gus
Aug 29 at 6:42












Awesome, this was what I was looking for. Thank you!
– glouise
Aug 30 at 1:48




Awesome, this was what I was looking for. Thank you!
– glouise
Aug 30 at 1:48

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f294285%2fmake-legend-in-qgis-only-show-features-in-the-view-extent%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?