Recent versions of QtWebEngine have stricter policies when it comes to accessing remote content. As it stands, tiles don't load.
The fix would be to add in the MapWidget constructor :
self._page.settings().setAttribute(QWebEngineSettings.WebAttribute.LocalContentCanAccessRemoteUrls,True)
Hope that helps
Thanky you very much for this information!
That helps a lot. I had the same problem after migrated my code from pyqtlet to pyqtlet2 and PyQt6.
Now it works again.
🙂
Recent versions of QtWebEngine have stricter policies when it comes to accessing remote content. As it stands, tiles don't load. The fix would be to add in the MapWidget constructor :
self._page.settings().setAttribute(QWebEngineSettings.WebAttribute.LocalContentCanAccessRemoteUrls,True)
Hope that helps