set all path options to defaults, to ensure any changes made by highlighters (e.g. dashes used by portal weakness) are reset on a highlighter change
This commit is contained in:
parent
7923903544
commit
1d354d4e05
@ -39,11 +39,14 @@ window.getMarkerStyleOptions = function(details, selected) {
|
|||||||
|
|
||||||
var options = {
|
var options = {
|
||||||
radius: lvlRadius + (L.Browser.mobile ? PORTAL_RADIUS_ENLARGE_MOBILE : 0),
|
radius: lvlRadius + (L.Browser.mobile ? PORTAL_RADIUS_ENLARGE_MOBILE : 0),
|
||||||
|
stroke: true,
|
||||||
color: selected ? COLOR_SELECTED_PORTAL : COLORS[details.team],
|
color: selected ? COLOR_SELECTED_PORTAL : COLORS[details.team],
|
||||||
opacity: 1,
|
|
||||||
weight: lvlWeight,
|
weight: lvlWeight,
|
||||||
|
opacity: 1,
|
||||||
|
fill: true,
|
||||||
fillColor: COLORS[details.team],
|
fillColor: COLORS[details.team],
|
||||||
fillOpacity: 0.5
|
fillOpacity: 0.5,
|
||||||
|
dashArray: null
|
||||||
};
|
};
|
||||||
|
|
||||||
return options;
|
return options;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user