I am trying to make a map with a semi-transparent (60%) raster layer overlying an areal photo (raster) base map. This works fine and looks good but when I add a legend to display the values of the raster overlay, the legend items for the associated raster are transparent as well and end up looking like pastel versions of the colors in the raster. Is there a way to make the legend items fully opaque while the raster is semi-transparent? See the image below and note how red shows up as pink etc.

Example ap with legend

  • What GIS software are you using? – Martin Hügi Aug 10 '17 at 23:07
  • Sorry, I am having this problem both in QGIS 2.4.0 and 2.18.6 – Casivio Aug 10 '17 at 23:09

In the QGIS main project area duplicate your layer.

Set the style of one to be 0% transparency, and unclick the layer so it isn't visible.

Set the other layer to be 60% transparency as you want it, and have that visible.

Then in print composer, add your map and add the legend, you should see both layer legends with their respective styles.

Turn off 'auto-update' in the properties on the right hand side

enter image description here

Then select the layer in the legend that you don't want and use minus icon to remove it.

enter image description here

Leaving you with just the legend styled as you want it

  • That works. Not an ideal work around but I get what I want. Is there somewhere to accept your answer? I don't see that option anywhere – Casivio Aug 11 '17 at 19:11
  • There should be a tick below the up and down arrows to accept. If you have a look at other questions with an accepted answer you will see a green tick. Glad it the answer helped. Thanks – Martin Hügi Aug 11 '17 at 20:04

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.