[player-tracker] portal selection doesn't work if portal is offscreen

This commit is contained in:
fkloft 2015-01-16 20:56:07 +01:00
parent 6a0e021e30
commit 74f051fef3

View File

@ -77,8 +77,7 @@ plugin.playerTracker.onClickListener = function(event) {
var marker = event.target; var marker = event.target;
var ll = marker.options.referenceToPortal.split(","); var ll = marker.options.referenceToPortal.split(",");
var guid = window.findPortalGuidByPositionE6(ll[0], ll[1]); window.selectPortalByLatLng(ll[0]/1E6, ll[1]/1E6);
if(guid) window.renderPortalDetails(guid);
if (marker.options.desc) { if (marker.options.desc) {
plugin.playerTracker.playerPopup.setContent(marker.options.desc); plugin.playerTracker.playerPopup.setContent(marker.options.desc);