3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
248 stars 141 forks source link

Raster Legend aspect and behaviour 3.6.13 vs 3.7.8 #4546

Open Antoviscomi opened 1 week ago

Antoviscomi commented 1 week ago

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 :

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

Operating system

Ubuntu 22.04

Browsers

Chrome

Browsers version

126.0.6478.126

Relevant log output

No response

Antoviscomi commented 1 week ago

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 commented 1 week ago

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

guenterw commented 1 week ago

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 commented 1 week ago

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