summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-03-14 18:57:06 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-03-15 23:27:18 +0200
commit16b3892f22225640a0c30fd45353aa9805b2be9d (patch)
treecef120e6d29f0905c3d197455bfbe2f193d0b494
parent2105d3c7d00adef2ddce679a43a7a77f95168c7a (diff)
downloadsubsurface-16b3892f22225640a0c30fd45353aa9805b2be9d.tar.gz
MapWidget.qml: use a new URL format for Google Maps
Make the map widget use a new URL format for Google Maps in openLocationInGoogleMaps(). The new URL format does not show a marker once the location is open in Google Maps as this might confuse some users. Suggested-by: Willem Ferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
-rw-r--r--map-widget/qml/MapWidget.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/map-widget/qml/MapWidget.qml b/map-widget/qml/MapWidget.qml
index 9d7fad37c..5d1f60624 100644
--- a/map-widget/qml/MapWidget.qml
+++ b/map-widget/qml/MapWidget.qml
@@ -325,8 +325,8 @@ Item {
}
function openLocationInGoogleMaps(latitude, longitude) {
- var loc = latitude + " " + longitude
- var url = "https://www.google.com/maps/place/" + loc + "/@" + loc + ",5000m/data=!3m1!1e3!4m2!3m1!1s0x0:0x0"
+ var loc = latitude + "," + longitude
+ var url = "https://www.google.com/maps/place/@" + loc + ",5000m/data=!3m1!1e3!4m2!3m1!1s0x0:0x0"
Qt.openUrlExternally(url)
}