Solved How could I rotate the Map of Qt5.9 beta?
-
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
-
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.
-
-
@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 -
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.
-
@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).
-
Dear @aktay ,
you can use rotation property in Map component instead in QT 5.8 and 5.7 -
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?
-
@aktay ,
Congratulation to use 5.9 that was about old release of Qt forget it ;) -
Hahahaaa OK, I forgot. :))))