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

[Bug]: Problems using XYZ tiles depending on project reference system in Lizmap 3.7 #4361

Open RobiFag opened 6 months ago

RobiFag commented 6 months ago

What is the bug? (in English)

Adding XYZ tiles layers (EPSG:3857) from QGIS Data Source Manager, Plugin Quick Map Service and Plugin Lizmap returns different errors depending on the project reference system.:

project_3003.zip project_3857.zip project_4326.zip

I made the same test with Lizmap 3.6.10 and the results are the same for the three project regardless of the project reference system:

Steps to reproduce the issue

  1. Create a project with a reference system different from EPSG:3857
  2. add a layer with the same reference system of the project (to have a reference point)
  3. add an xyz tiles layer from data source manager and/or Lizmap plugin and/or Quick Map Service plugin (added by default in 3857)

Versions, safeguards, check summary etc

Versions :

List of safeguards :
* Mode : normal * Allow parent folder : no * Prevent other drive : yes * Prevent PG service : yes * Prevent PG Auth DB : yes * Force PG user&pass : yes * Prevent ECW : yes

Check Lizmap plugin

Operating system

Ubuntu 20.04.6 LTS

Browsers

Firefox, Chrome, Microsoft Edge

Browsers version

Firefox Versione 124.0.2, Chrome Versione 123.0.6312.106, Microsoft Edge Versione 123.0.2420.81

Relevant log output

No response

pizzuga commented 6 months ago

I can confirm. I was opening the same bug with our data. The same layers (e.g. OSM, Google Hybrid etc.) in the TOC of layer are reprojected correctly. In the following images OSM as base layer (with shift) and as layer in the TOC of layers

image_2024_04_12T07_52_21_423Z

image_2024_04_12T07_50_52_399Z

RobiFag commented 6 months ago

The problem actually seems to be the definition as baselayers (baselayers group), if the XYZ are loaded as overlay layers there are no issues depending on the reference system of the project:

timbo-barnes commented 1 month ago

The problem actually seems to be the definition as baselayers (baselayers group), if the XYZ are loaded as overlay layers there are no issues depending on the reference system of the project:

This is consistent with what I've found- I think the new 'baselayers' needs a bit more work. (in my case too, I can't print when I have my layers all in EPSG:2193 which used to work before 'baselayers' group was introduced. I now have to use a EPSG: 3857 basemap and map CRS...which means the server is having to reproject all my other vector layers on the fly and everything is very slow