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:
@@ -27,8 +27,10 @@ window.plugin.portalHighlighterPortalsLevelColor = function() {};
|
||||
|
||||
window.plugin.portalHighlighterPortalsLevelColor.colorLevel = function(data) {
|
||||
var portal_level = data.portal.options.data.level;
|
||||
var opacity = .6;
|
||||
data.portal.setStyle({fillColor: COLORS_LVL[portal_level], fillOpacity: opacity});
|
||||
if (portal_level !== undefined) {
|
||||
var opacity = .6;
|
||||
data.portal.setStyle({fillColor: COLORS_LVL[portal_level], fillOpacity: opacity});
|
||||
}
|
||||
}
|
||||
|
||||
var setup = function() {
|
||||
|
Reference in New Issue
Block a user