[Qgis-user] [QGIS webclient] expand/collapse layer tree
Otto Dassau
dassau at gbd-consult.de
Sun Sep 29 09:27:17 PDT 2013
Hi,
I found a solution with a small change in WebgisInit.js.
//expand first level
layerTree.root.firstChild.collapseChildNodes(false);
layerTree.root.firstChild.expand(true, true);
Regards
Otto
Am Sun, 29 Sep 2013 16:23:50 +0200
schrieb Otto Dassau <dassau at gbd-consult.de>:
> Hi,
>
> I would like to have the initial layer tree to be expanded, when I open a
> qgis webclient. At the moment it is collapsed and I have to click the [+]
> sign, to see all available layers.
>
> Is there an option to define this in GlobalOptions or somewhere else?
>
> And a second question. Would it also be possible to have the layer legend
> included in the layer tree as it is in QGIS desktop?
>
> Thanks a lot
> Otto
More information about the Qgis-user
mailing list