[player-tracker] portal selection doesn't work if portal is offscreen
This commit is contained in:
parent
6a0e021e30
commit
74f051fef3
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user