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
257 stars 143 forks source link

Change the default baselayer without changing the layer order #4280

Open josemvm opened 7 months ago

josemvm commented 7 months ago

the user can't change the default base layer. now the default base layer is the first base layer in the base layers tree, so the can't sort the base layers...

Versions :

List of safeguards :
* Mode : normal * Allow parent folder : no * Prevent other drive : no * Prevent PG service : no * Prevent PG Auth DB : no * Force PG user&pass : no * Prevent ECW : no
Gustry commented 7 months ago

You mean you don't change the first layer in group baselayers ? Why ?

image

josemvm commented 7 months ago

qgis desktop (base layers order): imagem

lwc (the first base layer in the tree from qgis desktop is the default base layer (Google Terrain): imagem

if the user want to order in alphabetical order the base layers, like: Google Hybrid Google Satellite Google Terrain OpenStreetMap OpenTopoMap

the firt base layer in alphabetical order from qgis desktop is the default base layer on lwc (Google Hybrid)

Gustry commented 7 months ago

Edited

So you want in LWC, the content of the drop down menu to be :

  1. Google Hybrid
  2. Google Satellite
  3. Google Terrain ← Default layer when landing on LWC landing page
  4. OpenStreetMap
  5. OpenTopoMap

Correct ? To have a custom order in the dropdown menu, but to have a custom default layer when landing on LWC ?

josemvm commented 7 months ago

@Gustry perfect! IMMO this is what should be expected

Gustry commented 7 months ago

IMMO this is what should be expected

image

It's not a bug for now, but a feature request.

katagen commented 7 months ago

For me too, before we were able to select the default baselayer, independently from the order! Even if it was a request, in my opinion it is a regression.

josemvm commented 7 months ago

in my opinion it is a regression

this is a feature present in version 3.6

katagen commented 7 months ago

Don't know, but on 3.5, I was able to select the default baselayer! So, not to be able to do that on 3.7, it is a regression!

guenterw commented 4 months ago

I agree. Hence the suggestion to also control the active baselayers via the QGIS themes (see https://github.com/3liz/lizmap-web-client/issues/4501)