From fe47f9b5dc8d49f80b883ac225e6f23d07e74e59 Mon Sep 17 00:00:00 2001 From: Philipp Schaefer Date: Wed, 31 Jul 2013 21:36:21 +0200 Subject: [PATCH] added back labeled marker to gmaps link in user-location plugin --- mobile/plugins/user-location.user.js | 2 +- mobile/src/com/cradle/iitc_mobile/share/ShareActivity.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/plugins/user-location.user.js b/mobile/plugins/user-location.user.js index c556619a..ee279269 100644 --- a/mobile/plugins/user-location.user.js +++ b/mobile/plugins/user-location.user.js @@ -43,7 +43,7 @@ window.plugin.userLocation.setup = function() { marker.on('click', function(e) { window.console.log('marker location'); var ll = e.target.getLatLng(); - window.androidCopy('https://maps.google.com/?q='+ll.lat+','+ll.lng); + window.androidCopy('https://maps.google.com/?q=loc:'+ll.lat+','+ll.lng+'%20('+PLAYER.nickname+')'); }); plugin.userLocation.marker = marker; diff --git a/mobile/src/com/cradle/iitc_mobile/share/ShareActivity.java b/mobile/src/com/cradle/iitc_mobile/share/ShareActivity.java index a30a173f..f3aefeb7 100644 --- a/mobile/src/com/cradle/iitc_mobile/share/ShareActivity.java +++ b/mobile/src/com/cradle/iitc_mobile/share/ShareActivity.java @@ -72,7 +72,7 @@ public class ShareActivity extends FragmentActivity implements ActionBar.TabList // we merge gmaps intents with geo intents since it is not possible // anymore to set a labeled marker on geo intents ArrayList intents = new ArrayList(); - String gMapsUri = "http://maps.google.com/maps?q=loc:" + mLl + " (" + mTitle + ")"; + String gMapsUri = "http://maps.google.com/maps?q=loc:" + mLl + "%20(" + mTitle + ")"; Intent gMapsIntent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(gMapsUri)); String geoUri = "geo:" + mLl; Intent geoIntent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(geoUri));