2

This seems like a counter intuitive question, but is there a way to freeze the legend so that it stops updating itself in the print composer?

My auto-update box is unticked for the legend, but the legend symbols keep updating with every map change/refresh. I want the symbol sizes to stay the same regardless of what I change in my main map.

I've tried to save the legend as an image and re-importing the image as the legend, but the image is not scalable and therefore looks very pixelated in comparison to the rest of the map.

I am currently using Qgis 2.4

  • Welcome to GIS:SE @Mengll! Could you test this on a more up-to-date version of QGIS? Either 2.18 or 3 and see if the legend still updates for you? – Joseph Jun 19 '18 at 13:40
  • Install newer version of qgis, what is the problem? – nagib Jun 19 '18 at 14:31
1

You can do this by locking your layer(s) as shown below.

Map > item Properties > Layers

By doing this, all what you will do in the canvas will not be reflected in the print composer until you uncheck the button.

This may be useful when you have more than one map in your print composer, but you dont want to duplicate each layers.

enter image description here

  • This is an option but it has the reverse effect to what the OP asked. The legend items in the composer will update with every symbology change while the map item won't. – Gabriel C. Apr 5 at 12:57
0

As far as I know, QGIS symbols will always change to match what you set in the layer properties. The update checkbox concerns the layers present (or not) in your legend.

But my main concern is that what you are trying to achieve is actually a cartography no-no. Legend items matching feature symbology is a basic rule.

Of course, this applies mostly to point features. If you want to make line or polygon legend items longer/larger or shorter/smaller, you can modify the legend parameters as long as the color, line width, and patterns are the same.

If you really want to go with differently sized symbols in your legend, there are workarounds. You could check out this question.

  • One reason to have a legend that doesn't update its feature symbology, is when you have several, separate print layouts based on different e.g. categorizations of one layer. Going back and forth of styles in that one layer in the main window will wreck legend in one layout. – Ville Koivisto Oct 19 '18 at 10:11
  • There are workarounds for that, for example having a duplicate layer with the different symbology as another entry in the legend. But that's not what the OP seemed to ask. I looks like he wanted the symbols to not match the phenomena in the map. – Gabriel C. Oct 19 '18 at 11:15
0

The easiest way to achieve this is to have a separate dedicated "legend" layer.

You can make this layer not visible in the map and just use it for the legend.

This will allow you to have larger markers for the legend for example, or for scaled symbology it might even be the only way to do it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.