allow portal highlighters for placeholder portals - several (e.g. uniques) work just fine
fix several other highlighters to check for required data on portals
This commit is contained in:
@ -30,7 +30,7 @@ window.plugin.portalsMissingResonators.highlight = function(data) {
|
||||
if(data.portal.options.team != TEAM_NONE) {
|
||||
var res_count = data.portal.options.data.resCount;
|
||||
|
||||
if(res_count < 8) {
|
||||
if(res_count !== undefined && res_count < 8) {
|
||||
var fill_opacity = ((8-res_count)/8)*.85 + .15;
|
||||
var color = 'red';
|
||||
var params = {fillColor: color, fillOpacity: fill_opacity};
|
||||
|
Reference in New Issue
Block a user