diff --git a/plugins/player-tracker.user.js b/plugins/player-tracker.user.js index f79e382a..89ca7329 100644 --- a/plugins/player-tracker.user.js +++ b/plugins/player-tracker.user.js @@ -295,16 +295,16 @@ window.plugin.playerTracker.drawData = function() { } } - title += '\n' - + ago(last.time, now) + ' ago\n' + title += '
' + + ago(last.time, now) + ' ago
' + window.chat.getChatPortalName(last); // show previous data in tooltip var minsAgo = '\t ago\t'; if(evtsLength >= 2) - title += '\n \nprevious locations:\n'; + title += '
 
previous locations:
'; for(var i = evtsLength - 2; i >= 0 && i >= evtsLength - 10; i--) { var ev = playerData.events[i]; - title += ago(ev.time, now) + minsAgo + window.chat.getChatPortalName(ev) + '\n'; + title += ago(ev.time, now) + minsAgo + window.chat.getChatPortalName(ev) + '
'; } // calculate the closest portal to the player @@ -330,6 +330,8 @@ window.plugin.playerTracker.drawData = function() { // marker itself var icon = playerData.team === 'RESISTANCE' ? new plugin.playerTracker.iconRes() : new plugin.playerTracker.iconEnl(); var m = L.marker(gllfe(last), {title: title, icon: icon, referenceToPortal: closestPortal, opacity: absOpacity}); + if (typeof android !== 'undefined' && android) + m.bindPopup(title); // ensure tooltips are closed, sometimes they linger m.on('mouseout', function() { $(this._icon).tooltip('close'); }); m.addTo(playerData.team === 'RESISTANCE' ? plugin.playerTracker.drawnTracesRes : plugin.playerTracker.drawnTracesEnl);