[Qgis-user] [QGIS webclient] expand/collapse layer tree

Otto Dassau dassau at gbd-consult.de
Sun Sep 29 10:31:52 PDT 2013


Hi Andreas,

Am Sun, 29 Sep 2013 18:27:41 +0200
schrieb Andreas Neumann <a.neumann at carto.net>:

> Hi Otto,
> 
> Originally the layer tree was expanded
> 
> The modifications that Lars did for the support of the base maps broke
> it because it introduced an additional hierarchy in the tree. See
> http://webgis.uster.ch/wsgi/webgisLauncher.wsgi?uuid=cb84fcf6-bff8-45a7-abcd-e299548446b8
> - where I still use the old version and the layer tree is expanded by
> default.

ok

> There is also another function that is currently broken: the
> themeChanger. This is also because of the additional hierarchy. We
> should discuss this with Lars how to fix these two issues that worked
> before these modifications. Ideally we could hide the top "WMS" tree and
> make it invisible.

I added Lars in Cc: so we can discuss, how to fix this. I hope he can help
us with this.

> As to your second question: the Glarus QGIS webclient implements this -
> but we decided to not do it this way, because there will be in the
> future more layer-based functions and settings and we do not want to
> "pollute" the tree with too many options. We want to put all the layer
> information, settings and controls into a separate window. Otherwise
> people would have to scroll in the tree all the time. If your tree is
> nested 3-4 times the legend would only be visible 30% and people would
> have to scroll.

ok, I had a look at http://map.geo.gl.ch/

Are these changes available somewhere and would it be difficult to
integrate it in the qgis webclient as an option? 

I mean, if I only want to show a limited number of layers with a
simple/short legend, it would be nice to have the possibility to use this
option together with an expanded layer tree. This way would make it very
easy for unexperienced users to oversee all features and informations.

Regards
Otto

> Andreas
> 
> Am 29.09.2013 16:23, schrieb Otto Dassau:
> > 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