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
249 stars 141 forks source link

Define active baselayer via QGIS themes #4501

Closed guenterw closed 3 weeks ago

guenterw commented 1 month ago

The use of QGIS themes has been working perfectly in Lizmap since version 3.7 and is ingenious.

But often the background map (e.g. colored or black/white) should also change with the selected layers.

However, the active background map cannot yet be controlled via the QGIS themes. Is this a bug or a new wish/extension?

josemvm commented 4 weeks ago

hi @guenterw

The use of QGIS themes has been working perfectly in Lizmap since version 3.7 and is ingenious.

can you try to use more than 2 themes and check if it works fine for you?

thanks

guenterw commented 4 weeks ago

hi @josemvm

see here in my test projects. Project “Test BürgerGIS...” under https://cx21-7.webgis.biz with Lizmap 3.7.8 https://cx21-8.webgis.biz with Lizmap 3.8.0 Alpha.2

image

Works perfectly for me incl. consideration of open/closed legends. Only for grouped layergroups it does not work yet. This is the example with the "FNP incl. Änd.", which are 9 grouped raster layers. As far as I know, it is not possible to influence whether the grouped layergroups are active or not. But there are also problems with the legends for grouped layergroups.

guenterw commented 3 weeks ago

Thank you very much! That works perfectly. See https://cx21-8.webgis.biz/index.php project "Test BürgerGIS 3.8.0 rc.1" / "Test WebGIS-Projekt Bauleitplanung..." Theme "Standard" / "B-Pläne Übersicht" with grey background map, theme "ALKIS Auskunft" with colored background map

Is there any hope that it will also be included in 3.7? That would be great!

nboisteault commented 3 weeks ago

@guenterw it has been backported to 3.7 so you'll have this feature in Lizmap 3.7.9. Thanks for testing.

guenterw commented 3 weeks ago

Thanks for implementing. I had once again looked in the wrong directory (release instead of unstable) and thought there was no 3.7.9-pre yet. Works great, tested under https://cx21-7.webgis.biz