Comments (5)
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.
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.
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.
Agree.
from qwc2-demo-app.
Implemented in qgis/qwc2@14bc58d
from qwc2-demo-app.
Related Issues (20)
- edithing themesconfig.json HOT 6
- redlining layer in url HOT 3
- Buffer for Redlining/Circle doesn't work HOT 1
- Error while refreshing config cache HOT 2
- Hide Menu in TopBar HOT 2
- Expand specific group in layer when called by another application HOT 1
- Automatic theme configuration failing HOT 2
- Permissions are not created HOT 3
- Questions regarding MapFilter HOT 4
- Rendering issue due to different DPI between QGISServer and QWC2 HOT 5
- Comma separated values and Qgis search HOT 2
- External WMS as URL params error when no url encoding HOT 1
- Hide a layer from the public HOT 6
- Adding an ArcGIS Rest WFS HOT 2
- MapTip does not work on imported layers from other themes HOT 1
- Calling by URL: where is 'style' located? HOT 3
- Turkish translations HOT 1
- Example of geopackage as a test file?
- Crash in identifyViewer.jsx HOT 1
- Time manager crashes when enable a temporal layer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qwc2-demo-app.