Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Expression sur les étiquettes. #621

Closed
MirBang opened this issue Jan 24, 2025 · 1 comment
Closed

Expression sur les étiquettes. #621

MirBang opened this issue Jan 24, 2025 · 1 comment
Labels

Comments

@MirBang
Copy link

MirBang commented Jan 24, 2025

Description

Bonjour à tous,

J'ai un probleme, ajouté une expression pour l'étiquette de ma couche, l'expression est: CASE
WHEN is_selected() THEN "a_cs_cod"
ELSE ''
END

Cette expression marche bien sur mon projet sur qgis, sauf que sur mon projet Lizmap non.

Je voudrais donc savoir si lizmap lit et comprendre des expressions et des géo traitements fait sur nos projets?

Merci

Context

  • QGIS version: 3.34
  • Lizmap version: 3.38
  • OS:
@Gustry
Copy link
Member

Gustry commented Jan 24, 2025

Je voudrais donc savoir si lizmap lit et comprendre des expressions et des géo traitements fait sur nos projets?

It depends what kind of QGIS expressions.
Yes, some expressions are supported when editing the data.

Please see the documentation : https://docs.lizmap.com/current/fr/publish/configuration/expression.html

Or you can see the demo showing different color with QGIS expressions according to the center of the map : https://demo.lizmap.com/lizmap/index.php/view/map?repository=features&project=expression_map

That's actually a good question about is_selected, you might have encountered a bug with QGIS Server ? As it's not Lizmap responsible for setting color on selected features. Only QGIS Server is involded in this process. You should check with QGIS Server.

https://docs.qgis.org/3.34/fr/docs/server_manual/services/wms.html#wms-selection

@Gustry Gustry closed this as not planned Won't fix, can't repro, duplicate, stale Jan 24, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants