mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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 <jlmulder@xs4all.nl>
This commit is contained in:
parent
6e38619970
commit
d6003209d6
4 changed files with 17 additions and 3 deletions
|
@ -89,7 +89,7 @@ Kirigami.Page {
|
|||
text: qsTr("Show on map")
|
||||
iconName: "gps"
|
||||
onTriggered: {
|
||||
showMap(diveDetailsListView.currentItem.modelData.dive.gps)
|
||||
showMap(diveDetailsListView.currentItem.modelData.dive.gps_decimal)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -53,8 +53,8 @@ Item {
|
|||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
if (dive.gps !== "")
|
||||
showMap(dive.gps)
|
||||
if (dive.gps_decimal !== "")
|
||||
showMap(dive.gps_decimal)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue