-
-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more information if the layer is invalid : tooltip for users admin/non admin, disable tool ... #4397
Comments
I find this extension very helpful, I also wanted to suggest it. |
This was a real screenshot from the new version of the plugin, you can do the upgrade ;-) 2.9.1 just released. The only drawback, if the user has set this icon for production, to show warnings on his own map :) (traffic jam...) |
Thanks for the hint but unfortunately it doesn't work for me yet. From my point of view, it would be ideal if the admin would see the “!” and the normal user would not see the layer at all. Project "Test Jagdkataster..." |
It's a work in progress on this.
Indeed, for an admin, some tooltip must be added, all tools using an invalid layer must be checked : edition tool, attritube table, dataviz, form filter ... (all layers which can be configured in Lizmap plugin, or in QGIS, for Value relation, Relation reference, Atlas ...) Can you share a screenshot of QGIS about these layers ? Hum; I just tried a project I knew with a broken layer : Indeed, the symbol is not at the correct level. |
In my legend, I can see the flag Did you restart your QGIS-Server ? |
But for sure, by reading the logs from your server, you will have a message like :
As usual, you should read your QGIS Server logs. If needed, increase log level. I just made a commit to have a little bit more debug if an invalid layer has been found. If you can download the latest zip. Thanks for your help |
The latest ZIP might be available in a dozen of minutes, just in case. We have some CI running to build the ZIP package. |
Yes, it would need some dev. I'm not sure about the current behavior.
No, this was not yet supported. It's in progress in 3liz/qgis-lizmap-server-plugin#77
This is a must ;-) That's the only way to see how your server is behaving, especially when it doesn't work as expected. QGIS Server core and plugins are verbose, about what they are doing etc. |
Thank you for the clarification. With logging, I was referring more to the analysis in the browser. I am essentially familiar with logging from the QGIS server, even if I don't use it enough. But I also see myself more as a user and tester. |
Good to know. Still no luck for vector layer ? Can you just add typo in the datasource of "Jagdkataster" and/or "Politisch" ?
It's a work in progress. The webbrowser is now aware about this invalid layer. And it's the purpose of this ticket :
In your qgis logs, you should have the warning about the raster layer. |
It would be nice if the legend could display either a
⚠
icon next to it (with a tooltip, different for the admin) if theGetLegendGraphic
contains avalid=False
.It would allow to see quickly that this legend relies on broken layer :
http://lizmap.local:8130/index.php/lizmap/service
in the JSON output, the plugin is now providing a
valid=False
value :The icon provided by Lizmap server is a warning icon. I tried to override as well the layer name by appending
⚠
at the end of the string.But both string AND mainly the icon is overriden by LWC, I gues because of
lizmap-web-client/assets/src/modules/state/Symbology.js
Line 58 in f766786
CC @nboisteault @rldhont
The text was updated successfully, but these errors were encountered: