6 state: deviceRotation.orientation
9 property alias centerLatitude: map.centerLatitude
10 property alias centerLongitude: map.centerLongitude
11 property alias gpsLocationLatitude: map.gpsLocationLatitude
12 property alias gpsLocationLongitude: map.gpsLocationLongitude
17 transformOrigin: "Center"
22 anchors.centerIn: parent
33 width: logo.width + 20
34 height: logo.height + 20
40 source: "qrc:/res/ixonos_logo.png"
41 anchors.centerIn: parent
42 anchors.horizontalCenterOffset: 3
43 anchors.verticalCenterOffset: 5
48 property int prevMouseX: 0
49 property int prevMouseY: 0
55 onMousePositionChanged: {
56 if (mouse.buttons & Qt.LeftButton) {
57 var diffX = mouse.x - prevMouseX
58 var diffY = mouse.y - prevMouseY
59 map.pan(-diffX, -diffY)
68 x: parent.width/2 - width/2
69 y: parent.height/2 - height/2
71 source: "qrc:/res/sight.png"
77 y: parent.height - height - 5
79 height: zoomIn.height / 2
83 border.color: palette.highlight
88 verticalAlignment: "AlignVCenter"
89 horizontalAlignment: "AlignHCenter"
90 text: map.distanceToGpsLocation + " km"
92 font.pixelSize: height / 3
99 y: parent.height - height - gpsDistance.height - 10
101 height: zoomIn.height
104 color: palette.button
105 border.color: palette.highlight
109 source: "qrc:/res/gps_position.png"
110 anchors.verticalCenter: parent.verticalCenter
111 anchors.horizontalCenter: parent.horizontalCenter
115 source: "qrc:/res/gps_position_dir.png"
116 anchors.verticalCenter: parent.verticalCenter
117 anchors.horizontalCenter: parent.horizontalCenter
118 rotation: map.angleToGpsLocation
119 opacity: map.distanceToGpsLocation < 1.0 ? 0.0 : 1.0
125 onClicked: ParallelAnimation {
128 property: "centerLatitude"
129 from: map.centerLatitude
130 to: map.gpsLocationLatitude
132 easing.type: Easing.InOutCubic
136 property: "centerLongitude"
137 from: map.centerLongitude
138 to: map.gpsLocationLongitude
140 easing.type: Easing.InOutCubic
147 when: mouseArea3.pressed
161 source: "qrc:/res/zoom_in.png"
167 map.zoomLevel = map.zoomLevel + 1
174 when: mouseArea1.pressed
186 y: zoomIn.y + zoomIn.height + 5
188 source: "qrc:/res/zoom_out.png"
194 if (map.zoomLevel > 1.0)
195 map.zoomLevel = map.zoomLevel - 1;
201 when: mouseArea2.pressed
227 NumberAnimation { properties: "rotation,heigth,width"; duration: 200 }