summaryrefslogtreecommitdiff
path: root/qmapwatchlet/map-metawatch-digital.qml
blob: 9c054a415b7e536e2f58776fe056c543408df7d1 (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
import QtQuick 1.0
import QtMobility.location 1.2
import com.javispedro.sowatch.metawatch 1.0
import com.javispedro.sowatch.qmap 1.0

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