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

[Bug]: google terrain as base layer map - stop working

Open josemvm opened this issue 9 months ago • 5 comments

What is the bug? (in English)

i've my google api key activated for the map tiles but after this commit https://github.com/3liz/lizmap-web-client/pull/5514 it stop works

Image

Steps to reproduce the issue

set google terrain as base layer one

Versions, safeguards, check summary etc

Versions :

  • Lizmap Web Client : 3.8.6 - commit 50eef0fa5 https://github.com/3liz/lizmap-web-client/commit/50eef0fa5
  • Lizmap plugin : 4.4.7
  • QGIS Desktop : 3.34.15
  • QGIS Server : 3.34.15
  • Py-QGIS-Server or QJazz : not used
  • QGIS Server plugin atlasprint : 3.4.1
  • QGIS Server plugin lizmap_server : 2.12.0
  • QGIS Server plugin wfsOutputExtension : 1.8.2
List of Lizmap Web Client modules :
* multiauth : 1.2.2
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

Check Lizmap plugin

  • [x] I have done the step just before in the Lizmap QGIS desktop plugin before opening this ticket. Otherwise, my ticket is not considered valid and might get closed.

Operating system

Ubuntu 22.04

Browsers

Firefox

Browsers version

136.0

Relevant log output


josemvm avatar Mar 11 '25 15:03 josemvm

hi @mdouchin

i tried a new project from sctrach with a google terrain layer and it works as normal but not if it is set as base layer

josemvm avatar Mar 12 '25 10:03 josemvm

@Gustry sorry, what happened with google terrains as base layer? is there any additional configuration needed in this new version of lizmap or is this really a bug?

josemvm avatar Mar 13 '25 11:03 josemvm

@mdouchin sorry but i’m not sure i understand the purpose of this change. Google Terrain has become unusable as a base layer, at least when loaded in the QGIS project via QMS, in the same way it used to work before.

should Google Terrain now be loaded in a different way?

thanks

josemvm avatar Apr 17 '25 07:04 josemvm

@josemvm If you can help, what does it show when you click on "response" in your screenshot ? This is the important part, what Google is answering in this request.

Gustry avatar Apr 17 '25 10:04 Gustry

If you can help, what does it show when you click on "response" in your screenshot ? This is the important part, what Google is answering in this request.

@Gustry

here is the API response

{
  "error": {
    "code": 400,
    "message": "The terrain map type must always contain a roadmap layer",
    "errors": [
      {
        "message": "The terrain map type must always contain a roadmap layer",
        "domain": "global",
        "reason": "badRequest"
      }
    ]
  }
}

josemvm avatar Apr 25 '25 16:04 josemvm