[gnome-maps] sendToDialog: Fix coordinates-only OSM URI
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] sendToDialog: Fix coordinates-only OSM URI
- Date: Thu, 13 Jun 2019 19:06:46 +0000 (UTC)
commit 269132c0bb0a275b79be06999e86f0ac8b467e9d
Author: James Westman <flyingpimonster flyingpimonster net>
Date: Mon Jun 3 20:27:16 2019 -0500
sendToDialog: Fix coordinates-only OSM URI
The parameters were wrong, resulting in a URL that didn't point to the
location.
Part of the share dialog overhaul, #167.
src/sendToDialog.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/sendToDialog.js b/src/sendToDialog.js
index d66f7d2..9c53027 100644
--- a/src/sendToDialog.js
+++ b/src/sendToDialog.js
@@ -154,10 +154,10 @@ var SendToDialog = GObject.registerClass({
Utils.osmTypeToString(place.osm_type),
place.osm_id);
} else {
- return '%s?lat=%f&lon=%f&zoom=%d'.format(base,
- place.location.latitude,
- place.location.longitude,
- view.zoom_level);
+ return '%s?mlat=%f&mlon=%f&zoom=%d'.format(base,
+ place.location.latitude,
+ place.location.longitude,
+ view.zoom_level);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]