Qt5 Map does not work anymore
-
I made a small test code for map display a week earlier. The code worked just fine before. Today, It does not work anymore(whte screen) while no changes have been made.
Grok query results:
Based on recent OpenStreetMap (OSM) announcements and Ubuntu package histories, the most likely culprit is a technical update to the tile.openstreetmap.org raster tile service rolled out on December 7, 2025. Qt 5.15's OSM plugin (in libqt5location5-plugins) has
long-standing issues with HTTPS enforcement and parameter handling, making it brittle to server-side tweaks like this.Does anyone have the same issue? Qt 5.15.3 on Ubuntu 22.04
The map test cases in Qt6 are all right.import QtQuick 2.15 import QtLocation 5.15 import QtPositioning 5.15 Rectangle { id: mapObject objectName: "mapObject" width: 500 height: 500 visible: true // default location: Oslo property real locationX: 59.91 property real locationY: 10.75 Plugin { id: osmPlugin name: "osm" PluginParameter { name: "osm.mapping.providersrepository.disabled" value: "true" } PluginParameter { name: "osm.mapping.custom.host" value: "https://tile.openstreetmap.org/%z/%x/%y.png" } } Map { id: mapView anchors.fill: parent plugin: osmPlugin center: QtPositioning.coordinate(locationX, locationY) //(59.91, 10.75) // Oslo zoomLevel: 14 activeMapType: mapView.supportedMapTypes[ mapView.supportedMapTypes.length - 1 ] } } -
I have the same issue unless the default tile provider (currently Thunderforest) is used.
@jeremy_k Tried the same code with Qt 5.15.13 on Ubuntu 23.04 and map can be displayed properly. I am trying to build 5.15.18 on Ubuntu 22.04 and will see if the map can be displayed.
PluginParameter { name: "osm.mapping.custom.host" value: "https://tile.openstreetmap.org/ //make small changes }It is likely that the newer versions of Qt 5.15.x fixed some map issues.
-
I made a small test code for map display a week earlier. The code worked just fine before. Today, It does not work anymore(whte screen) while no changes have been made.
Grok query results:
Based on recent OpenStreetMap (OSM) announcements and Ubuntu package histories, the most likely culprit is a technical update to the tile.openstreetmap.org raster tile service rolled out on December 7, 2025. Qt 5.15's OSM plugin (in libqt5location5-plugins) has
long-standing issues with HTTPS enforcement and parameter handling, making it brittle to server-side tweaks like this.Does anyone have the same issue? Qt 5.15.3 on Ubuntu 22.04
The map test cases in Qt6 are all right.import QtQuick 2.15 import QtLocation 5.15 import QtPositioning 5.15 Rectangle { id: mapObject objectName: "mapObject" width: 500 height: 500 visible: true // default location: Oslo property real locationX: 59.91 property real locationY: 10.75 Plugin { id: osmPlugin name: "osm" PluginParameter { name: "osm.mapping.providersrepository.disabled" value: "true" } PluginParameter { name: "osm.mapping.custom.host" value: "https://tile.openstreetmap.org/%z/%x/%y.png" } } Map { id: mapView anchors.fill: parent plugin: osmPlugin center: QtPositioning.coordinate(locationX, locationY) //(59.91, 10.75) // Oslo zoomLevel: 14 activeMapType: mapView.supportedMapTypes[ mapView.supportedMapTypes.length - 1 ] } }@JoeCFD Also consider using other maps providers like here or mapbox. And make sure your app is deployed and running with openssl included
-
I have the same issue unless the default tile provider (currently Thunderforest) is used.
@jeremy_k Tried the same code with Qt 5.15.13 on Ubuntu 23.04 and map can be displayed properly. I am trying to build 5.15.18 on Ubuntu 22.04 and will see if the map can be displayed.
PluginParameter { name: "osm.mapping.custom.host" value: "https://tile.openstreetmap.org/ //make small changes }It is likely that the newer versions of Qt 5.15.x fixed some map issues.
-
@JoeCFD Also consider using other maps providers like here or mapbox. And make sure your app is deployed and running with openssl included
@Ronel_qtmaster it is a requirement. I can not change it. Thanks for your reply.
-
J JoeCFD has marked this topic as solved