From 9ab659f2f229bad9bc8c9b229ff13d75d87133de Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Tue, 12 Feb 2019 11:38:52 +0900 Subject: change default gps position to tokyo --- app/file_operation.h | 4 ++-- app/navigation.qml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/file_operation.h b/app/file_operation.h index 618d26b..09f78fb 100644 --- a/app/file_operation.h +++ b/app/file_operation.h @@ -101,7 +101,7 @@ public: } Q_INVOKABLE double getLatitude() { - double latitude = 36.136261; + double latitude = 35.692396; QFile file(MAP_ACCESS_TOKEN_FILEPATH); if (!file.open(QIODevice::ReadOnly)){ fprintf(stderr,"Failed to open mapAccessToken file \"%s\": %m", qPrintable(MAP_ACCESS_TOKEN_FILEPATH)); @@ -121,7 +121,7 @@ public: } Q_INVOKABLE double getLongitude() { - double longitute = -115.151254; + double longitute = 139.691102; QFile file(MAP_ACCESS_TOKEN_FILEPATH); if (!file.open(QIODevice::ReadOnly)){ fprintf(stderr,"Failed to open mapAccessToken file \"%s\": %m", qPrintable(MAP_ACCESS_TOKEN_FILEPATH)); diff --git a/app/navigation.qml b/app/navigation.qml index 4741685..795bfd4 100755 --- a/app/navigation.qml +++ b/app/navigation.qml @@ -109,20 +109,20 @@ ApplicationWindow { geocodeModel.query = fromAddress geocodeModel.update() } - + MapQuickItem { id: poi sourceItem: Rectangle { width: 14; height: 14; color: "#e41e25"; border.width: 2; border.color: "white"; smooth: true; radius: 7 } coordinate { - latitude: 36.136261 - longitude: -115.151254 + latitude: 35.692396 + longitude: 139.691102 } opacity: 1.0 anchorPoint: Qt.point(sourceItem.width/2, sourceItem.height/2) } MapQuickItem { sourceItem: Text{ - text: "Westgate" + text: "Hilton Tokyo" color:"#242424" font.bold: true styleColor: "#ECECEC" -- cgit 1.2.3-korg