Skip to content
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

Raster Legend aspect and behaviour 3.6.13 vs 3.7.8 #4546

Closed
1 task done
Antoviscomi opened this issue Jun 25, 2024 · 5 comments
Closed
1 task done

Raster Legend aspect and behaviour 3.6.13 vs 3.7.8 #4546

Antoviscomi opened this issue Jun 25, 2024 · 5 comments
Labels

Comments

@Antoviscomi
Copy link
Contributor

Antoviscomi commented Jun 25, 2024

Using image as legend in 3.6.13 for a raster layer gives rise to a group with the ability to deactive and hide the layer legend from TOC, that allowed the legend to be hidden like in screencast

Video.del.25-06-2024.11.43.19.webm

In 3.7.8 the management of the legend with use of image has changed so the display is as in the following screencast, with evident disproportion between image and title in addition to the lack of group layer-like management

Video.del.25-06-2024.11.44.31.webm

all settings are the same for project in two LWC versions because of the same directory and the same optional js actived

Steps to reproduce the issue

  1. configure a raster layer legend with image as legend from legend settings in qgis;
  2. save .cfg via LWC plugin;
  3. open the project in LWC 3.6.13 and 3.7.8

Versions, safeguards, check summary etc

Versions :

  • Lizmap Web Client : 3.6.13
  • Lizmap plugin : 4.3.16
  • QGIS Desktop : 3.38.0
  • QGIS Server : 3.38.0
  • Py-QGIS-Server : not used
  • QGIS Server plugin atlasprint : 3.4.1
  • QGIS Server plugin lizmap_server : 2.9.4
  • QGIS Server plugin wfsOutputExtension : 1.8.0
List of safeguards :
  • Mode : normal
  • Allow parent folder : yes
  • Number of parent : 10 folder(s)
  • Prevent other drive : no
  • Prevent PG service : no
  • Prevent PG Auth DB : no
  • Force PG user&pass : no
  • Prevent ECW : no

Check Lizmap plugin

  • I have done the step just before in the Lizmap QGIS desktop plugin before opening this ticket. Otherwise, my ticket is not considered valid and might get closed.

Operating system

Ubuntu 22.04

Browsers

Chrome

Browsers version

126.0.6478.126

Relevant log output

No response

@Antoviscomi
Copy link
Contributor Author

Antoviscomi commented Jun 25, 2024

In addition I share the follows screenshots to allow yourself to compare the two versions

LWC 3.6.13

Schermata del 2024-06-25 12-00-47

LWC 3.7.8

Schermata del 2024-06-25 11-59-53

@Antoviscomi
Copy link
Contributor Author

Antoviscomi commented Jun 25, 2024

I also add that I modified mine map.css according to @nboisteault fix Update map.css #4539, but even reinserting the controls on the layer_tree the results in size does not change

@Antoviscomi Antoviscomi changed the title Raster Legend aspect and behaviour 3.6.13 vs 3.7 Raster Legend aspect and behaviour 3.6.13 vs 3.7.8 Jun 25, 2024
@guenterw
Copy link

Are they grouped layergroups (both automatic translations are not entirely clear)?

I already noticed the problem with the legend display, especially with grouped layergroups, in 3.7.x (see #4431 and #4382).
Another problem with grouped layergroups is that they cannot yet be controlled (active or not) via the QGIS themes. This is a bigger problem than I first thought, as I have grouped quite a few layers.
I hope that the behaviour of the grouped layergroups will be revised in 3.7.x.

@Antoviscomi
Copy link
Contributor Author

Antoviscomi commented Jun 25, 2024

Are they grouped layergroups (both automatic translations are not entirely clear)?

@guenterw the raster in previous isn't a member of Layergroup but simply a raster in a project.

I already noticed the problem with the legend display, especially with grouped layergroups, in 3.7.x (see #4431 and #4382).
Another problem with grouped layergroups is that they cannot yet be controlled (active or not) via the QGIS themes. This is a bigger problem than I first thought, as I have grouped quite a few layers.
I hope that the behaviour of the grouped layergroups will be revised in 3.7.x.

This seems another issue I've take a look to the discussion #4431 and #4382

In this case the issue concern to the management of raster legend with a custom image in. So in 3.6.13 there is the ability to hide legend (like for grouplayers) in 3.7.8 there isn't, in addition, in case of custom image as raster legend, there is a disproportional size between the Legend and his Title

@Antoviscomi
Copy link
Contributor Author

Fixed in 3.7.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants