summaryrefslogtreecommitdiff
path: root/qmapwatchlet/map-metawatch-digital.qml
blob: a0732ed5da8acedf70b12e00ce272bfdb8fbade5 (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
27
28
29
30
31
32
import QtQuick 1.0
import QtMobility.location 1.2
import com.javispedro.sowatch.metawatch 1.0
import com.javispedro.sowatch.qmap 1.0

MWPage {
	MWTitle {
		id: title
		z: 1
	}

	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;
			}
		}
	}
}