move player tracker popup further up - to match the default placement. makes it easier to click/tap on other markers when things are close together

This commit is contained in:
Jon Atkins 2013-11-09 06:27:50 +00:00
parent d0fd324344
commit 2b8c4327b5

View File

@ -65,7 +65,7 @@ window.plugin.playerTracker.setup = function() {
plugin.playerTracker.oms = new OverlappingMarkerSpiderfier(map, {keepSpiderfied: true, legWeight: 3.5});
plugin.playerTracker.oms.legColors = {'usual': '#FFFF00', 'highlighted': '#FF0000'};
var playerPopup = new L.Popup({offset: L.point([0,-20])});
var playerPopup = new L.Popup({offset: L.point([1,-34])});
plugin.playerTracker.oms.addListener('click', function(player) {
window.renderPortalDetails(player.options.referenceToPortal);
if (player.options.desc) {