added back labeled marker to gmaps link in user-location plugin
This commit is contained in:
@ -43,7 +43,7 @@ window.plugin.userLocation.setup = function() {
|
|||||||
marker.on('click', function(e) {
|
marker.on('click', function(e) {
|
||||||
window.console.log('marker location');
|
window.console.log('marker location');
|
||||||
var ll = e.target.getLatLng();
|
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;
|
plugin.userLocation.marker = marker;
|
||||||
|
@ -72,7 +72,7 @@ public class ShareActivity extends FragmentActivity implements ActionBar.TabList
|
|||||||
// we merge gmaps intents with geo intents since it is not possible
|
// we merge gmaps intents with geo intents since it is not possible
|
||||||
// anymore to set a labeled marker on geo intents
|
// anymore to set a labeled marker on geo intents
|
||||||
ArrayList<Intent> intents = new ArrayList<Intent>();
|
ArrayList<Intent> intents = new ArrayList<Intent>();
|
||||||
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));
|
Intent gMapsIntent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(gMapsUri));
|
||||||
String geoUri = "geo:" + mLl;
|
String geoUri = "geo:" + mLl;
|
||||||
Intent geoIntent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(geoUri));
|
Intent geoIntent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(geoUri));
|
||||||
|
Reference in New Issue
Block a user