This commit is contained in:
Jon Atkins
2013-12-13 01:17:38 +00:00
9 changed files with 182 additions and 38 deletions

View File

@ -267,11 +267,11 @@ window.androidCopy = function(text) {
}
window.androidPermalink = function() {
if(typeof android === 'undefined' || !android || !android.copy)
if(typeof android === 'undefined' || !android || !android.intentPosLink)
return true; // i.e. execute other actions
var center = map.getCenter();
android.intentPosLink(center.lat, center.lng, map.getZoom(), "Intel Map", false);
android.intentPosLink(center.lat, center.lng, map.getZoom(), "Selected map view", false);
return false;
}