Hello,
I’m posting this topic here because I don’t know who else to contact about this issue (I’m French). We use open-source software Lizmap (version 3.9 - French society), and Lizmap interface allows us to add the OpenStreetMap basemap.
However, when uploading projects with this basemap, we encounter a problem with a part of OSM tiles (see picture) that we can’t figure out why after reading the terms of use (Tile Usage Policy).
As you can see in the picture, most of the tiles display correctly, and it’s worth noting that when the page is refreshed, it’s not always the same tiles that are blocked.
The terms of use specify that you must:
• Use the correct URL: https://tile.openstreetmap.org/{z}/{x}/{y}.png.
This is correctly configured for this URL in our QGIS project.
• Provide visible license attribution, following the Attribution Guidelines.
We clearly display the license in the bottom right corner of Lizmap software.
• Send a valid HTTP User-Agent that clearly identifies your application (or a platform X-Requested-With app ID where set automatically).
HTTP User-Agent appears correct: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36”
• From web pages, ensure a valid HTTP Referer header is sent.
Given that most tiles are displayed, can we really consider the HTTP Referer to be blocking?
If so, is there a specific place to check this? What should the HTTP Referer look like to be good?
• Cache tiles locally according to HTTP caching headers (or at least 7 days if your cache cannot read them).
Similarly, since most tiles are displaying correctly, can we really consider the cache to be the blocking factor? If so, should this be configured in the Lizmap software code or on the Apache server?
• Avoid encouraging or enabling copyright infringement.
Our application is accessible only to certain users, and their access is password-protected. In no way we are trying to encourage copyright infringement.
Thank you for your help. If you have any ideas on how to fix this tile display issue while respecting the OSM terms of service, please share them.
