Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. OSM map not showing in minimal map example on ios
QtWS25 Last Chance

OSM map not showing in minimal map example on ios

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 3 Posters 579 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tatami shark
    wrote on last edited by
    #1

    Hello,

    I'm trying the minimal map example from:

    https://doc-snapshots.qt.io/qt5-5.9/qtlocation-minimal-map-example.html

    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.

    Thanks

    tatami shark

    C 1 Reply Last reply
    0
    • T tatami shark

      Hello,

      I'm trying the minimal map example from:

      https://doc-snapshots.qt.io/qt5-5.9/qtlocation-minimal-map-example.html

      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.

      Thanks

      tatami shark

      C Offline
      C Offline
      Colton
      wrote on last edited by
      #2

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

      L 1 Reply Last reply
      0
      • L Offline
        L Offline
        lemons
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • C Colton

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

          L Offline
          L Offline
          lemons
          wrote on last edited by
          #4

          @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
              }
          }
          
          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved