<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Segoe UI Emoji";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.E-MailFormatvorlage18
        {mso-style-type:personal-reply;
        font-family:"Verdana",sans-serif;
        font-variant:normal !important;
        color:#1F4E79;
        text-transform:none;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='font-family:"Verdana",sans-serif;color:#1F4E79'>Hallo Günter,<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif;color:#1F4E79'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif;color:#1F4E79'>vielen Dank für den ausführlichen Beitrag und die Tips! Meine Lizmap-Projekte sind bislang eher überschaubar, was die Anzahl von Layern und die Gruppierung angeht. Sobald sich das ändert, würde ich gern auf das Thema zurückkommen und in die Diskussion einsteigen. Die Wahlmöglichkeiten für initial geöffnete oder geschlossene Layergruppen fände ich auf jeden Fall sinnvoll. Die Anwender von WEB-Gis gehen ja nicht unbedingt täglich mit Legendenbäumen um, und da kann eine steuernde Voreinstellung hilfreich für das Überblicken der Karteninhalte sein.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif;color:#1F4E79'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='font-family:"Verdana",sans-serif;color:#1F4E79;mso-fareast-language:DE'>Beste Grüße aus dem stürmischen Norden,<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif;color:#1F4E79;mso-fareast-language:DE'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif;color:#1F4E79;mso-fareast-language:DE'>Uwe<span style='font-variant:small-caps'><o:p></o:p></span></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif;color:#1F4E79;mso-fareast-language:DE'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif;color:#1F4E79;mso-fareast-language:DE'>--<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif;color:#1F4E79;mso-fareast-language:DE'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif;color:#1F4E79;mso-fareast-language:DE'>Ingenieurbüro Fischer<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif;color:#1F4E79;mso-fareast-language:DE'>Esbecker Str. 8<o:p></o:p></span></p><p class=MsoNormal><b><span style='font-family:"Verdana",sans-serif;color:#1F4E79;mso-fareast-language:DE'>31036 Eime<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif;color:#1F4E79;mso-fareast-language:DE'>Tel.: 05182/8325<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Verdana",sans-serif;color:#1F4E79;mso-fareast-language:DE'>Mobil: 0172/8876934<o:p></o:p></span></p></div><p class=MsoNormal><span style='font-family:"Verdana",sans-serif;color:#1F4E79'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='mso-fareast-language:DE'>Von:</span></b><span style='mso-fareast-language:DE'> Lizmap-de [mailto:lizmap-de-bounces@lists.osgeo.org] <b>Im Auftrag von </b>guenter@lizmap.de<br><b>Gesendet:</b> Sonntag, 25. April 2021 19:11<br><b>An:</b> lizmap-de@lists.osgeo.org<br><b>Betreff:</b> [Lizmap-de] Layergruppen in Lizmap<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hallo zusammen,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>hier möchte ich einmal auf die Bedeutung von Layergruppen in Lizmap etwas eingehen. Für die, die relativ neu mit Lizmap arbeiten (oder erst arbeiten wollen) gibt es ein paar Hinweise was möglich ist und bei den „Profis“ regt es evtl. eine Diskussion an (siehe Ende der Mail).<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Durch die Verwendung von Layergruppen werden nicht nur die (Web-)GIS-Projekte übersichtlicher, sondern bei „Gruppierung der Layer zu einem Layer“ wird auch die Performance im Browser wesentlich verbessert. Nach meiner Beobachtung wird ein WebGIS-Projekt umso langsamer, je mehr Layer in dem QGIS-Projekt vorhanden sind. Der Flaschenhals scheint hier das Rendern der einzelnen Layer durch den QGIS-Server zu sein. Dies kann man auch gut an der CPU-Auslastung des Servers beobachten.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Layer-Gruppierung zu einem Layer im Lizmap-Plugin:<o:p></o:p></p><p class=MsoNormal><img width=809 height=242 id="Grafik_x0020_1" src="cid:image001.jpg@01D741D8.73FA8BE0"><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Gerade bei den ALKIS-Daten ist dies sehr sinnvoll. Wobei ich für einzelne Layer (z.Bsp. die Gebäudeschraffuren) auch separate Layergruppen (=> Layer) erstelle, damit diese getrennt deaktiviert werden können.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Für die „normalen“ Layergruppen gibt es die Einstellungsmöglichkeit, dass die Gruppencheckbox zum Aktivieren/Deaktivieren der ganzen Gruppe ausgeblendet wird.<o:p></o:p></p><p class=MsoNormal>So macht es zum Beispiel keinen Sinn, dass über die Gruppe „Luftbilder“, die Luftbildern aus verschiedenen Jahren alle zusammen aktiviert werden. Dafür ist die Option „Gruppencheckboxen verstecken“:<o:p></o:p></p><p class=MsoNormal><img width=868 height=181 id="Grafik_x0020_2" src="cid:image003.jpg@01D741D8.73FA8BE0"><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Ergibt im Browser:<o:p></o:p></p><p class=MsoNormal><img width=359 height=48 id="Grafik_x0020_3" src="cid:image004.jpg@01D741D8.73FA8BE0"><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Der Anwender wird gezwungen die Gruppe „Luftbilder“ zu öffnen und darin das entsprechende Luftbild zu aktivieren.<o:p></o:p></p><p class=MsoNormal><img width=399 height=122 id="Grafik_x0020_4" src="cid:image005.jpg@01D741D8.73FA8BE0"><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Bei aktivierter Gruppencheckbox wurde beobachtet, dass Anwender die komplette Gruppe aktivieren, so dass sämtliche Luftbilder (übereinander) aufbereitet werden.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Standardmäßig sind die Layergruppen im WebClient „geöffnet“. Was bei vielen Layer recht unübersichtlich werden kann.<o:p></o:p></p><p class=MsoNormal>Hier ein Beispiel mit dem gleichen Projekt:<o:p></o:p></p><p class=MsoNormal><img width=650 height=706 id="Grafik_x0020_5" src="cid:image006.jpg@01D741D8.73FA8BE0"><o:p></o:p></p><p class=MsoNormal>(ich weiß, dass dieses Projekt zu viel Inhalt hat aber dafür ist es noch recht flott<span style='font-family:"Segoe UI Emoji",sans-serif'>😊</span>)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Die „geschlossenen“ Layergruppen können durch Editieren der „maps.js“ erreicht werden.<o:p></o:p></p><p class=MsoNormal>Diese Datei liegt bei der Lizmap-Version 3.3.15 im Verzeichnis …/lizmap/www/js/   <o:p></o:p></p><p class=MsoNormal>In der Version 3.3.15 muss die Zeile 2131 ergänzt werden. Von „});“ in „}).collapseAll();“<o:p></o:p></p><p class=MsoNormal><img width=609 height=70 id="Grafik_x0020_6" src="cid:image007.jpg@01D741D8.73FA8BE0"><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>In anderen Lizmap Versionen befindet sich die Datei evtl. in einem anderen Verzeichnis und die Zeile ist auch eine andere.<o:p></o:p></p><p class=MsoNormal>(siehe auch [1])<o:p></o:p></p><p class=MsoNormal>Aber Achtung: Diese Änderung muss nach jedem Update wieder vorgenommen werden!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Meine Frage an die erfahrenen Lizmap-Anwender: Kennt Ihr weitere Einstellungsmöglichkeiten?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Ich persönlich hätte den Wunsch, dass im Plugin eingestellt werden kann, ob die Gruppen geöffnet oder geschlossen angezeigt werden. Und zwar möglichst für jede Gruppe individuell. Das betrifft auch die Gruppencheckbox. Denn was bei den o.g. Beispiel mit den Luftbilder sinnvoll ist, kann für andere Inhalte (z.Bsp. verschiedene Layer von Wasserleitungen) nicht sinnvoll sein. Diese möchte man ggf. auch wahlweise alle auf einmal aktivieren.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Wie ist Eure Meinung dazu?  Sowas könnte man ja mal an die Lizmap-Leute herantragen, bzw. auf Github oder in der englischen Liste diskutieren.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Viele Grüße<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Günter<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>[1]  <a href="https://github.com/3liz/lizmap-web-client/issues/245">https://github.com/3liz/lizmap-web-client/issues/245</a><o:p></o:p></p></div></body></html>