aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-12-31 02:20:23 -0800
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-12-31 02:23:30 -0800
commit3b16f4c6066d8f262ee7fc204f3cceb533ad7811 (patch)
treedc5837881a823c53f1bc9b34b27db0dd8a1de67f
parentbc3f00d2fe42a82844a7a323cbf681b1ce706065 (diff)
qml: reset bearing and zoomLevel when recentering
Reset zoomLevel and bearing to default values when map re-center button is clicked. Bug-AGL: SPEC-3081 Change-Id: I6ae95fddd6b03278ff8e3d94b7f0675f1951a10b Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
-rw-r--r--app/BtnPresentPosition.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/BtnPresentPosition.qml b/app/BtnPresentPosition.qml
index b6134e8..2734664 100644
--- a/app/BtnPresentPosition.qml
+++ b/app/BtnPresentPosition.qml
@@ -12,6 +12,8 @@ Item {
function present_position_clicked() {
map.center = map.currentpostion
+ map.zoomLevel = default_zoom_level
+ map.bearing = 0
btn_present_position.state = "Flowing"
}
onClicked: { present_position_clicked() }