summaryrefslogtreecommitdiffstats
path: root/app/BtnEnlarge.qml
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2020-01-03 11:23:36 -0500
committerScott Murray <scott.murray@konsulko.com>2020-01-03 11:27:32 -0500
commitbbbc193fbd9bc0252080b3ad8f48c2cf452aad69 (patch)
tree1da2445d039ff592a8e5276e78ca05308ad51393 /app/BtnEnlarge.qml
parent992ab22d9eaa9e62138647bba833a1cb83185a32 (diff)
Add logic to enable re-center button when the view is centered but zoomed in/out, for consistency. Additionally, re-center when routing is started to improve user experience. Bug-AGL: SPEC-3081 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I6aa4686f5cb177f819fdee07d76dfa397c20179c
Diffstat (limited to 'app/BtnEnlarge.qml')
-rw-r--r--app/BtnEnlarge.qml5
1 files changed, 4 insertions, 1 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() }