lizmap-web-client icon indicating copy to clipboard operation
lizmap-web-client copied to clipboard

Change the default baselayer without changing the layer order

Open josemvm opened this issue 1 year ago • 9 comments

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 :

  • Lizmap Web Client : 3.7.4
  • Lizmap plugin : 4.2.6
  • QGIS Desktop : 3.28.15
  • QGIS Server : 3.28.15
  • Py-QGIS-Server : not used
  • QGIS Server plugin atlasprint : 3.3.2
  • QGIS Server plugin lizmap_server : 2.8.4
  • QGIS Server plugin wfsOutputExtension : 1.8.0
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

josemvm avatar Mar 08 '24 10:03 josemvm

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

image

Gustry avatar Mar 08 '24 10:03 Gustry

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)

josemvm avatar Mar 08 '24 11:03 josemvm

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 ?

Gustry avatar Mar 08 '24 11:03 Gustry

@Gustry perfect! IMMO this is what should be expected

josemvm avatar Mar 08 '24 12:03 josemvm

IMMO this is what should be expected

image

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

Gustry avatar Mar 08 '24 12:03 Gustry

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.

katagen avatar Mar 08 '24 18:03 katagen

in my opinion it is a regression

this is a feature present in version 3.6

josemvm avatar Mar 09 '24 20:03 josemvm

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!

katagen avatar Mar 09 '24 21:03 katagen

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)

guenterw avatar Jun 05 '24 07:06 guenterw