summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/BtnEnlarge.qml5
-rw-r--r--app/BtnGuidance.qml2
-rw-r--r--app/BtnShrink.qml5
3 files changed, 10 insertions, 2 deletions
diff --git a/app/BtnEnlarge.qml b/app/BtnEnlarge.qml
index 032dc14..cc158ad 100644
--- a/app/BtnEnlarge.qml
+++ b/app/BtnEnlarge.qml
@@ -7,8 +7,11 @@ Item {
height: 100
function zoomUp() {
- map.zoomLevel += 1
+ map.zoomLevel += 1
+ if(map.zoomLevel != default_zoom_level) {
+ btn_present_position.state = "Optional"
}
+ }
onClicked: { zoomUp() }
diff --git a/app/BtnGuidance.qml b/app/BtnGuidance.qml
index e5df9c3..bebb53b 100644
--- a/app/BtnGuidance.qml
+++ b/app/BtnGuidance.qml
@@ -31,6 +31,8 @@ Item {
btn_present_position.state = "Flowing"
btn_guidance.sts_guide = 2
btn_guidance.state = "onGuide"
+ map.zoomLevel = default_zoom_level
+ map.bearing = 0
}
function discardWaypoints(startFromCurrentPosition) {
diff --git a/app/BtnShrink.qml b/app/BtnShrink.qml
index da9700e..23859dc 100644
--- a/app/BtnShrink.qml
+++ b/app/BtnShrink.qml
@@ -8,8 +8,11 @@ Item {
height: 100
function zoomDown() {
- map.zoomLevel -= 1
+ map.zoomLevel -= 1
+ if(map.zoomLevel != default_zoom_level) {
+ btn_present_position.state = "Optional"
}
+ }
onClicked: { zoomDown() }