Qt World Summit: Submit your Presentation

OSM map not showing in minimal map example on ios

  • Hello,

    I'm trying the minimal map example from:


    I get an empty blank map on:

    • Qt for iOS Simulator 5.10.1 and on
    • Qt for iOS 5.10.1 on an iPhone SE

    On Android, Desktop QT the map is showing.

    I'am using Xcode 9.3.

    I have modified the code such that the error property of the Map is
    printed :

    Map {
    id: map
    onErrorChanged: {
    console.log("Map error: " + map.error)

    On iOS this prints out:
    qml: Map error: 1

    I'm helpless because of the error on iOS.
    What's wrong?

    I would appreciate your help.


    tatami shark

  • @tatami-shark Same problem, different app. Were you able to get any other map providers working?

  • This post is deleted!

  • @Colton Don't forget the plugin:

    import QtQuick 2.15
    import QtQuick.Window 2.15
    import QtLocation 5.12
    import QtPositioning 5.12
    Window {
        width: 760
        height: 480
        visible: true
        title: qsTr("Map Demo")
        Plugin {
            id: mapPlugin
            name: "osm" // Open Street Maps
            PluginParameter {
                name: "osm.mapping.highdpi_tiles"
                value: true
        Map {
            id: map
            anchors.fill: parent
            plugin: mapPlugin
            zoomLevel: 18
            copyrightsVisible: false
            gesture.enabled: true
            gesture.acceptedGestures: MapGestureArea.PinchGesture | MapGestureArea.PanGesture
                                      | MapGestureArea.FlickGesture | MapGestureArea.TiltGesture

Log in to reply