summaryrefslogtreecommitdiff
path: root/qmapwatchlet/map-liveview.qml
blob: e6ab4d4296cb0107164c8c66cd1e3b18396d4aef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import QtQuick 1.0
import QtMobility.location 1.2
import com.javispedro.sowatch.qmap 1.0

Item {
	MapView {
		id: map
		anchors.fill: parent
		updateEnabled: watch.active
		updateInterval: 5000;
	}

	Connections {
		target: watch
		onButtonPressed : {
			switch(button) {
			case 1:
				map.zoomLevel -= 1;
				break;
			case 2:
				map.zoomLevel += 1;
				break;
			}
		}
	}
}