diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/BtnEnlarge.qml | 5 | ||||
-rw-r--r-- | app/BtnGuidance.qml | 2 | ||||
-rw-r--r-- | app/BtnShrink.qml | 5 |
3 files changed, 10 insertions, 2 deletions
diff --git a/app/BtnEnlarge.qml b/app/BtnEnlarge.qml index 1a261d6..779f14d 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 11955f5..4dea819 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 a028bce..551c3df 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() } |