<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
Hi,
<div>Good it worked. Posting it to the list as well. <br>
<br>
<div id="AppleMailSignature" dir="ltr">/Karl-Magnus Jönsson</div>
<div dir="ltr"><br>
29 maj 2019 kl. 00:05 skrev Xan Vieiro <<a href="mailto:gallaecia6@gmail.com">gallaecia6@gmail.com</a>>:<br>
<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr"><span></span>
<p style="margin-bottom:0cm;line-height:100%">Hi Karl,</p>
<p style="margin-bottom:0cm;line-height:100%">your recipe works fine. Many thanks for the hint!</p>
<p style="margin-bottom:0cm;line-height:100%">It will be great if there were a feature filter in the map element at print composer, so map themes could be reduced.</p>
<p style="margin-bottom:0cm;line-height:100%"><br>
</p>
<p style="margin-bottom:0cm;line-height:100%">Kind regards,</p>
<p style="margin-bottom:0cm;line-height:100%"><br>
</p>
<p style="margin-bottom:0cm;line-height:100%">Xan V.</p>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">El mar., 28 may. 2019 a las 11:46, Karl Magnus Jönsson (<<a href="mailto:Karl-Magnus.Jonsson@kristianstad.se">Karl-Magnus.Jonsson@kristianstad.se</a>>) escribió:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="SV">
<div class="gmail-m_8388135887175679124WordSection1">
<p class="MsoNormal"><a name="m_8388135887175679124_T_Default_Reply"><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)" lang="EN-US">Ok. One option is to create a rule based style with a filter for the layer. Then add the style
 as a named style: In the layers symbology tab -> Style button -> Add… and name it e.g. print style. Then make sure all layers are visible and looks like you want in the layout. Add a map theme e.g print theme and associate the map in the layout with this map
 theme. Then you can change the style in main window as you wish, alter to default style for the layer and remove the rule based styling, make more named styles and map themes for different purposes.
<u></u><u></u></span></a></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)" lang="EN-US">Regards<u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10pt;font-family:"Franklin Gothic Book","sans-serif";color:black" lang="EN-US">Karl-Magnus Jönsson</span></b><span style="font-size:10pt;font-family:"Franklin Gothic Book","sans-serif";color:black" lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10pt;font-family:"Tahoma","sans-serif"">Från:</span></b><span style="font-size:10pt;font-family:"Tahoma","sans-serif""> Xan Vieiro [mailto:<a href="mailto:gallaecia6@gmail.com" target="_blank">gallaecia6@gmail.com</a>]
<br>
<b>Skickat:</b> den 28 maj 2019 11:15<br>
<b>Till:</b> Karl Magnus Jönsson<br>
<b>Ämne:</b> Re: [Qgis-user] Print Composer Filter<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">Hi Karl,<u></u><u></u></p>
<div>
<blockquote style="border-color:currentcolor currentcolor currentcolor rgb(204,204,204);border-style:none none none solid;border-width:medium medium medium 1pt;padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal"><a name="m_8388135887175679124_m_6198842982918010300_T_Default_Reply"><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">Hi!</span></a><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)" lang="EN-US">How do you mean? You do the filtering in the layer properties in the QGIS main window.
</span><u></u><u></u></p>
</div>
</div>
</blockquote>
</div>
</div>
<div>
<p class="MsoNormal">No, I don't. I just want to keep the whole layer at main window and doing filtering directly at print composer.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<blockquote style="border-color:currentcolor currentcolor currentcolor rgb(204,204,204);border-style:none none none solid;border-width:medium medium medium 1pt;padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)" lang="EN-US">For atlas there are some more variables or functions available when doing this.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)" lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:10pt;font-family:"Franklin Gothic Book","sans-serif";color:black">Karl-Magnus Jönsson</span></b><span style="font-size:10pt;font-family:"Franklin Gothic Book","sans-serif";color:black">
</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"> </span><u></u><u></u></p>
</div>
</div>
</blockquote>
</div>
</div>
<div>
<p class="MsoNormal">Regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Xan V.<u></u><u></u></p>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</body>
</html>