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
QGIS master: is_layer_visible () does not update automatically #25514
Comments
Author Name: Giovanni Manghi (@gioman) Is this a regression (works as expected in 2.18.* or earlier)?
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman) Feedback needed here. Is a regression in QGIS 3 (did it worked as expected in QGIS 2)? |
Author Name: salvatore fiandaca (salvatore fiandaca) In QGIS 2, the is_layer_visible function does not exist; so it's not a regression. |
Author Name: Giovanni Manghi (@gioman) Still true on the latest master? |
Author Name: salvatore fiandaca (salvatore fiandaca) Giovanni Manghi wrote:
yes, it is still true in the last master - gnu / linux mint 19 |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Nyall Dawson (@nyalldawson) I think this is a "wont fix". Expressions in QGIS can be very complex and adding a method to determine the dependencies of an expression would be almost impossible. For instance, there's also expressions which fetch features from other layers, expressions which calculate aggregates from other layers, expressions which use related features, etc. We'd also need to consider all these cases and force a refresh whenever any of the dependencies change. But then there's also expressions which rely on variables too. Then there's also the need to consider everywhere expressions can be used which may need refreshing... e.g. canvas renders, layout items, virtual fields, data defined properties, etc. I think given the extreme complexity of solving this and the easy workaround (refresh the canvas manually) it should be tagged as "wontfix" |
Author Name: salvatore fiandaca (salvatore fiandaca) Nyall Dawson wrote:
Thanks for the reply |
Author Name: Giovanni Manghi (@gioman) So... closing? |
Author Name: salvatore fiandaca (salvatore fiandaca) Giovanni Manghi wrote:
for me, Nyall explanation is ok |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: salvatore fiandaca (salvatore fiandaca)
Original Redmine Issue: 17617
Affected QGIS version: master
Redmine category:expressions
I used the function is_layer_visible () to change the appearance of the labels, but you need to do a manual refresc, it does not update automatically.
The text was updated successfully, but these errors were encountered: