mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
2105d3c7d0
commit
16b3892f22
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue