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 could I rotate the Map of Qt5.9 beta?

How could I rotate the Map of Qt5.9 beta?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
10 Posts 3 Posters 3.8k 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.
  • thamT Offline
    thamT Offline
    tham
    wrote on last edited by SGaist
    #1

    Qt5.9 add a new property tilt on qml Map, but I do not find any rotation property or qml type to rotate the map, do anyone know how to rotate it?Thanks

    1 Reply Last reply
    0
    • thamT Offline
      thamT Offline
      tham
      wrote on last edited by
      #2

      I found the answer, it is based on bearing value of Map, tilt and bearing works for osm and here plugin, thanks for vincent from Qt Mob.

      A 1 Reply Last reply
      1
      • thamT tham

        I found the answer, it is based on bearing value of Map, tilt and bearing works for osm and here plugin, thanks for vincent from Qt Mob.

        A Offline
        A Offline
        aktay
        wrote on last edited by
        #3

        @tham

        Hi,

        Will you give me some detail, please? I am using HERE map plugin.

        thamT 1 Reply Last reply
        0
        • A aktay

          @tham

          Hi,

          Will you give me some detail, please? I am using HERE map plugin.

          thamT Offline
          thamT Offline
          tham
          wrote on last edited by tham
          #4

          @aktay Sure

          Map{
          
          tilt: 45 //tilt 45 degree
          bearing: 45 //rotate 45 degree
          
          }
          

          It is so easy. QtLocation module works well for online routing, but to create a serious navigation app, we need ability of offline routing(unless you are ok with osm), without it, transaction/services will be used up in no time. Esri runtime SDK provide offline routing and other interesting functions, but

          1 : the extra api provided by that sdk do not conform to Qt api, which means your apps will be binded by esri
          2 : their services are quite expensive

          A 1 Reply Last reply
          1
          • thamT tham

            @aktay Sure

            Map{
            
            tilt: 45 //tilt 45 degree
            bearing: 45 //rotate 45 degree
            
            }
            

            It is so easy. QtLocation module works well for online routing, but to create a serious navigation app, we need ability of offline routing(unless you are ok with osm), without it, transaction/services will be used up in no time. Esri runtime SDK provide offline routing and other interesting functions, but

            1 : the extra api provided by that sdk do not conform to Qt api, which means your apps will be binded by esri
            2 : their services are quite expensive

            A Offline
            A Offline
            aktay
            wrote on last edited by
            #5

            @tham

            Thank you for your answer. But I am getting the error. Do you have any idea why?

              Map{
                    id: map
                    anchors.fill: parent
                    plugin:mapPlugin
                    center: QtPositioning.coordinate(latitude, longitude)
                    zoomLevel: 18
                   copyrightsVisible: false
                  tilt: 45 //tilt 45 degree
                  bearing: 45 //rotate 45 degree
            
            ....
            

            The Error:

            Cannot assign to non-existent property "tilt"
            Cannot assign to non-existent property "bearing"
            

            I also started to work with esri. I guess I should not use the ESRI according to what you say. What should we do for a navigation-like application? What is your suggestion?

            Thanks.

            thamT AlienA 2 Replies Last reply
            0
            • A aktay

              @tham

              Thank you for your answer. But I am getting the error. Do you have any idea why?

                Map{
                      id: map
                      anchors.fill: parent
                      plugin:mapPlugin
                      center: QtPositioning.coordinate(latitude, longitude)
                      zoomLevel: 18
                     copyrightsVisible: false
                    tilt: 45 //tilt 45 degree
                    bearing: 45 //rotate 45 degree
              
              ....
              

              The Error:

              Cannot assign to non-existent property "tilt"
              Cannot assign to non-existent property "bearing"
              

              I also started to work with esri. I guess I should not use the ESRI according to what you say. What should we do for a navigation-like application? What is your suggestion?

              Thanks.

              thamT Offline
              thamT Offline
              tham
              wrote on last edited by
              #6

              @aktay said in How could I rotate the Map of Qt5.9 beta?:

              Thank you for your answer. But I am getting the error. Do you have any idea why?

              You need Qt5.9 beta for these features

              I also started to work with esri. I guess I should not use the ESRI according to what you say. What should we do for a navigation-like application? What is your suggestion?

              It depends on how much budgets you got. I would pick esri if the customers have limited budgets, try my best not to use/encapsulate the api of esri sdk, this way in the future I could replace esri api by "standard Qt"(5.10?5.11?God knows)

              If the customers willing to pay the fees to develop custom plugin, I would start from study the plugin source codes of Qt and try to add offline routing function(an engineer of Google spend half a year to implement offline routing features on ios).

              1 Reply Last reply
              0
              • A aktay

                @tham

                Thank you for your answer. But I am getting the error. Do you have any idea why?

                  Map{
                        id: map
                        anchors.fill: parent
                        plugin:mapPlugin
                        center: QtPositioning.coordinate(latitude, longitude)
                        zoomLevel: 18
                       copyrightsVisible: false
                      tilt: 45 //tilt 45 degree
                      bearing: 45 //rotate 45 degree
                
                ....
                

                The Error:

                Cannot assign to non-existent property "tilt"
                Cannot assign to non-existent property "bearing"
                

                I also started to work with esri. I guess I should not use the ESRI according to what you say. What should we do for a navigation-like application? What is your suggestion?

                Thanks.

                AlienA Offline
                AlienA Offline
                Alien
                wrote on last edited by
                #7

                Dear @aktay ,
                you can use rotation property in Map component instead in QT 5.8 and 5.7

                A 1 Reply Last reply
                0
                • AlienA Alien

                  Dear @aktay ,
                  you can use rotation property in Map component instead in QT 5.8 and 5.7

                  A Offline
                  A Offline
                  aktay
                  wrote on last edited by
                  #8

                  @Alien

                  I upgraded to Qt 5.9.
                  I am using:

                     tilt: 45 //tilt 45 degree
                        bearing: 45 //rotate 45 degree
                  

                  What is the method you recommend? Can you be more descriptive?

                  AlienA 1 Reply Last reply
                  0
                  • A aktay

                    @Alien

                    I upgraded to Qt 5.9.
                    I am using:

                       tilt: 45 //tilt 45 degree
                          bearing: 45 //rotate 45 degree
                    

                    What is the method you recommend? Can you be more descriptive?

                    AlienA Offline
                    AlienA Offline
                    Alien
                    wrote on last edited by
                    #9

                    @aktay ,
                    Congratulation to use 5.9 that was about old release of Qt forget it ;)

                    A 1 Reply Last reply
                    0
                    • AlienA Alien

                      @aktay ,
                      Congratulation to use 5.9 that was about old release of Qt forget it ;)

                      A Offline
                      A Offline
                      aktay
                      wrote on last edited by
                      #10

                      @Alien

                      Hahahaaa OK, I forgot. :))))

                      1 Reply Last reply
                      1

                      • Login

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