resonators plugin - redraw selected portal resonators after zooming out and then back in again

This commit is contained in:
Jon Atkins 2013-12-14 00:25:53 +00:00
parent 562f745585
commit 48713823d7

View File

@ -117,6 +117,13 @@ window.plugin.drawResonators.zoomListener = function() {
ctrl.addClass('disabled').attr('title', 'Zoom in to show those.'); ctrl.addClass('disabled').attr('title', 'Zoom in to show those.');
} else { } else {
ctrl.removeClass('disabled').attr('title', 'Select a portal to draw resos'); ctrl.removeClass('disabled').attr('title', 'Select a portal to draw resos');
window.plugin.drawResonators.levelLayerGroup.clearLayers();
if (window.selectedPortal) {
var details = portalDetail.get(window.selectedPortal);
if (details) {
window.plugin.drawResonators.drawData(details);
}
}
}; };
} }