Google satellite layer overlapped on QField

I have a project which includes an XYZ layer for Google Satellite Imagery (URL http://www.google.cn/maps/vt?lyrs=s189&gl=cn&x={x}&y={y}&z={z}). This layer is correctly displayed on QGIS Desktop, but when I enable it on QField it is mostly covered by map canvas. It is displayed during a fraction of second, but then it is covered by a white layer in all screen but a narrow stripe at the bottom. I have other XYZ layers in the same project that are correctly displayed. It has happened for more than two years now, but it still happens with current version of QField (2.8.3). I also tried recreating project from scratch, but nothing changed.


Imported from GitHub discussion by @cdavila on 2023-07-11T16:24:37Z

This also same upo on another forum, but I don’t think its been resolved. Can you post an example QField Project with this problem to assist in finding the issue?


Imported from GitHub comment by @Oisin-JK on 2023-07-11T16:39:06Z

nitratos.zip


Imported from GitHub comment by @cdavila on 2023-07-11T17:29:06Z

cdavila , your XYZ URL actually leads to a redirect, which in turn leads to a QGIS issue handling tile caching.

Short-term fix, use this URL instead: http://www.google.com/maps/vt?lyrs=s189&gl=cn&x={x}&y={y}&z={z}

Longer-term fix: [xyz] Fix tile caching of redirected XYZ URLs by nirvn · Pull Request #53792 · qgis/QGIS · GitHub – should be in QField’s next release.


Imported from GitHub comment by @nirvn on 2023-07-12T03:46:08Z

Provided URL works like a charm, thank!


Imported from GitHub comment by @cdavila on 2023-07-12T06:41:57Z