3liz / lizmap-plugin

Lizmap plugin for QGIS, allowing to publish QGIS maps to Lizmap Web Client
https://www.lizmap.com/
GNU General Public License v2.0
63 stars 31 forks source link

Group layers, specify open or close #159

Open arno974 opened 5 years ago

arno974 commented 5 years ago

By default, Lizmap Web Client automatically opens all the groups and sub-groups in the layer tree. Would it be possible to specify in the Lizmap plugin if a layer group must be open or close ?

rmarzocchi84 commented 4 years ago

It is obviously nice to add this option in the plugin. Anyway you can actrually obtain this result using your javascript in the media folder https://github.com/3liz/lizmap-javascript-scripts/tree/master/group_collapse

Gustry commented 4 years ago

FYI, this information is now provided by QGIS Server 3.14 https://github.com/qgis/QGIS/pull/35408