Unsolved QtLocation OSM custom map is empty
-
Hello,
I am trying to use custom maps using QtLocation's osm plugin. I've set "osm.mapping.custom.host" parameter to custom http server. set "activeMapType" to "supportedMapTypes[supportedMapTypes.length - 1]". And it works on ubuntu linux. Yet when i cross-compile it for yocto-linux and run the app, it does not show custom map(Nothing but empty sceen). Server is valid since same code when compiled for ubuntu can reach the map.)
Can someone point me in the right direction please?
Snapshot of the code:
Map{ .... plugin: Plugin { name: "osm" PluginParameter { name: "osm.mapping.custom.host"; value: "<hostAddress>:<portNumber>/" } PluginParameter { name: "osm.mapping.providersrepository.disabled"; value: true} } activeMapType: supportedMapTypes[supportedMapTypes.length - 1] .... }
When i run it on yocto it prints below message, but does not print any message on ubuntu.
QGeoTileProviderOsm: Tileserver disabled at QUrl("http://maps-redirect.qt.io/osm/5.8/satellite") -
Try not passing any parameters beyond the name
"osm"
. Also, make sure you set the map width and height or else you won't see it at all.Map { anchors.fill: parent plugin: Plugin { name: "osm" } }
-
@ziiyaa Hello,
Did you solve your problem? I have a similar issue where my Plugin works on a Debian but not on Ubuntu, where the supportedMapTypes array is empty.