From d6003209d6abf715a00802debcd25b145154c8b1 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Tue, 21 Mar 2017 17:52:29 +0100 Subject: Subsurface-mobile: do send decimal GPS to Google Sending nicely readable formatted coordinates to Google Maps does not result in a correctly positioned map. Google likes unreadable decimal format. Little hacky solution. Added a gps_decimal attribute, populate that with the standard function for format a coordinate to string, but reset the preferences value temporarly so that it always converts it to decimal style. Signed-off-by: Jan Mulder --- mobile-widgets/qml/DiveDetailsView.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mobile-widgets/qml/DiveDetailsView.qml') diff --git a/mobile-widgets/qml/DiveDetailsView.qml b/mobile-widgets/qml/DiveDetailsView.qml index c43b8a313..79602e645 100644 --- a/mobile-widgets/qml/DiveDetailsView.qml +++ b/mobile-widgets/qml/DiveDetailsView.qml @@ -53,8 +53,8 @@ Item { MouseArea { anchors.fill: parent onClicked: { - if (dive.gps !== "") - showMap(dive.gps) + if (dive.gps_decimal !== "") + showMap(dive.gps_decimal) } } } -- cgit v1.2.3-70-g09d2