Map Viewer no longer work
-
I have been using Qt Quick's map viewer (OSM) feature on android for some time now. It used to work but for some reason it no longer display anything now (empty map) on android, but somehow works on desktop.
So I decided to create a new Qt Quick project and wrote a minimal map viewer to see if it work:
import QtQuick 2.0 import QtQuick.Window 2.0 import QtLocation 5.6 import QtPositioning 5.6 Window { visible: true width: 640 height: 480 title: qsTr("Hello World") Plugin { id: mapPlugin name: "osm" } Map { anchors.fill: parent plugin: mapPlugin center: QtPositioning.coordinate(59.91, 10.75) zoomLevel: 14 } }
This, too, doesnt work on android. It works on desktop but not android. I can see the OSM copyright text but the map is empty. Any idea?
-
I have been using Qt Quick's map viewer (OSM) feature on android for some time now. It used to work but for some reason it no longer display anything now (empty map) on android, but somehow works on desktop.
So I decided to create a new Qt Quick project and wrote a minimal map viewer to see if it work:
import QtQuick 2.0 import QtQuick.Window 2.0 import QtLocation 5.6 import QtPositioning 5.6 Window { visible: true width: 640 height: 480 title: qsTr("Hello World") Plugin { id: mapPlugin name: "osm" } Map { anchors.fill: parent plugin: mapPlugin center: QtPositioning.coordinate(59.91, 10.75) zoomLevel: 14 } }
This, too, doesnt work on android. It works on desktop but not android. I can see the OSM copyright text but the map is empty. Any idea?
-
Hi and welcome to devnet forum
What did change for your Android setup is the key question?
You are the only one being able to answer.Change of Android on device or different device?
Change of Qt version?Anything else is crystal ball reading.
-
After some debugging, it seems to be related to SSL:
QGeoTileRequestManager: Failed to fetch tile (210,123,8) 5 times, giving up. Last error message was: 'Error creating SSL context ()'
If I remember correctly, Qt android doesn't come with SSL am I correct?
-
After some debugging, it seems to be related to SSL:
QGeoTileRequestManager: Failed to fetch tile (210,123,8) 5 times, giving up. Last error message was: 'Error creating SSL context ()'
If I remember correctly, Qt android doesn't come with SSL am I correct?
@Virion said in Map Viewer no longer work:
If I remember correctly, Qt android doesn't come with SSL am I correct?
Correct. Qt never ships with prebuilt OpenSSL due to law restrictions.