I am currently using mapbox-gl-qml in my app, which is working fine, however I would like to try out the regular QML map with the OSM plugin. However I can’t seem to get it to work:
.pro:
QT += positioning location
.yaml:
Requires:
- sailfishsilica-qt5 >= 0.10.9
- qt5-plugin-geoservices-osm
- qt5-qtlocation >= 5.2.0
- qt5-qtdeclarative-import-location >= 5.2.0
- qt5-qtdeclarative-import-positioning >= 5.2.0
.qml:
Map {
id: map
anchors.fill: parent
plugin: Plugin {
id: osmPlugin
name: "osm"
}
center: positionSource.position.coordinate
}
This gives me a blank map, and after a while in the console I can see:
[W] unknown:0 - QGeoTileRequestManager: Failed to fetch tile (268,171,9) 5 times, giving up. Last error message was: 'Host otile1.mqcdn.com not found'
[W] unknown:0 - QGeoTileRequestManager: Failed to fetch tile (266,175,9) 5 times, giving up. Last error message was: 'Host otile1.mqcdn.com not found'
[W] unknown:0 - QGeoTileRequestManager: Failed to fetch tile (266,168,9) 5 times, giving up. Last error message was: 'Host otile1.mqcdn.com not found'
[W] unknown:0 - QGeoTileRequestManager: Failed to fetch tile (269,174,9) 5 times, giving up. Last error message was: 'Host otile1.mqcdn.com not found'
[W] unknown:0 - QGeoTileRequestManager: Failed to fetch tile (270,175,9) 5 times, giving up. Last error message was: 'Host otile1.mqcdn.com not found'
[W] unknown:0 - QGeoTileRequestManager: Failed to fetch tile (267,178,9) 5 times, giving up. Last error message was: 'Host otile1.mqcdn.com not found'
[W] unknown:0 - QGeoTileRequestManager: Failed to fetch tile (268,176,9) 5 times, giving up. Last error message was: 'Host otile1.mqcdn.com not found'
[W] unknown:0 - QGeoTileRequestManager: Failed to fetch tile (266,171,9) 5 times, giving up. Last error message was: 'Host otile1.mqcdn.com not found'
...
Is the OSM plugin no longer working? I would like to avoid that the users of my app need to sign up for an API key at the map provider, which only seems possible with OSM. Both HERE as well as Mapbox seem to require that one configures an API key for usage.