Giter Club home page Giter Club logo

Comments (5)

karl-magnus avatar karl-magnus commented on August 12, 2024

The possibilty to hide parts of the layer tree could be useful too. E.g. we have a cadastral group layer that consist of several layers; parcel areas, borders, texts. But the user just needs to switch the group layer and view it's legend. Then we have specified that the feature info for this group layer comes from a certain layer: the parcel layer.

from qwc2-demo-app.

manisandro avatar manisandro commented on August 12, 2024

folding/unfolding is implemented in qgis/qwc2@fcc8524 . Currently everything is expanded by default. Since QGIS Server does not expose the project layer-tree expanded/collapsed state in the GetProjectSettings reply, there is no way to currently replicate the state of the QGIS project layertree. QWCI seems to (maybe optionally?) initially collapse all groups beyond the first level, so perhaps one could generalize this and add a per-theme configuration option

"collapseGroupsBelowLevel": <level>

Or one could extend QGIS Server...

from qwc2-demo-app.

andreasneumann avatar andreasneumann commented on August 12, 2024

That proposal sounds fine with me.

I think we don't need to transport this setting from the QGIS project, as it is quite likely that - by accident - one expands layers unwanted. It is safer to collapse everything beyond first level and potentially override on a per theme basis where necessary in the themesConfig.json

from qwc2-demo-app.

karl-magnus avatar karl-magnus commented on August 12, 2024

Agree.

from qwc2-demo-app.

manisandro avatar manisandro commented on August 12, 2024

Implemented in qgis/qwc2@14bc58d

from qwc2-demo-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.