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. How to RUN MAPViewer example from qtlocation
Forum Updated to NodeBB v4.3 + New Features

How to RUN MAPViewer example from qtlocation

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 2.1k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    sumanthmara
    wrote on last edited by
    #1

    Hi,

    I installed Qt 5.0.1 and added QtLocation,Qt3d to QT SDK.
    How can I run mapviewer application throws me error qrc:///mapviewer.qml:547: TypeError: Cannot read property 'length' of undefined

    1 Reply Last reply
    0
    • A Offline
      A Offline
      amccarthy
      wrote on last edited by
      #2

      This error is caused because the parameters property is not being set. I recently fixed this in qtlocation commit 966e2b7cb14aebe89589af77c68980dfba8d1b82. You could update to the latest Qt Location, though I think no longer builds against Qt 5.0. Alternatively just remove the conditional from line 107 of qmlmapviewerwrapper.cpp. Though that wont work either. To use the Nokia geoservices plugin (the only one provided with your version of Qt Location) you need an app_id and token which you can get from developer.here.com. Then launch mapviewer with

      --plugin.app_id <your_app_id> --plugin.token <your_token>

      The latest Qt Location master branch has support for Open Street Maps.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sumanthmara
        wrote on last edited by
        #3

        Hi,
        Any support for 3D maps using qtlocation ?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          amccarthy
          wrote on last edited by
          #4

          Qt Location does not currently support 3D maps.

          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