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,12 +30,9 @@ window.setMarkerStyle = function(marker, selected) {
|
||||
|
||||
marker.setStyle(styleOptions);
|
||||
|
||||
// don't run highlighters if we only have placeholder data
|
||||
if (marker.options.data.level !== undefined) {
|
||||
// FIXME? it's inefficient to set the marker style (above), then do it again inside the highlighter
|
||||
// the highlighter API would need to be changed for this to be improved though. will it be too slow?
|
||||
highlightPortal(marker);
|
||||
}
|
||||
// FIXME? it's inefficient to set the marker style (above), then do it again inside the highlighter
|
||||
// the highlighter API would need to be changed for this to be improved though. will it be too slow?
|
||||
highlightPortal(marker);
|
||||
|
||||
if (selected) {
|
||||
marker.setStyle ({color: COLOR_SELECTED_PORTAL});
|
||||
|
Reference in New Issue
Block a user