placeholder portals - default style is thinner and dashed outline, to distinguish them from other low level portals
handy when panning around when portals are visible, as placeholders will still exist for links before data loading is complete
This commit is contained in:
parent
45d07d026a
commit
ed0cedfc81
@ -52,6 +52,13 @@ window.getMarkerStyleOptions = function(details) {
|
||||
var lvlWeight = LEVEL_TO_WEIGHT[level] * Math.sqrt(scale);
|
||||
var lvlRadius = LEVEL_TO_RADIUS[level] * scale;
|
||||
|
||||
var dashArray = null;
|
||||
// thinner and dashed outline for placeholder portals
|
||||
if (details.team != TEAM_NONE && level==0) {
|
||||
lvlWeight = 1;
|
||||
dashArray = [1,2];
|
||||
}
|
||||
|
||||
var options = {
|
||||
radius: lvlRadius,
|
||||
stroke: true,
|
||||
@ -61,7 +68,7 @@ window.getMarkerStyleOptions = function(details) {
|
||||
fill: true,
|
||||
fillColor: COLORS[details.team],
|
||||
fillOpacity: 0.5,
|
||||
dashArray: null
|
||||
dashArray: dashArray
|
||||
};
|
||||
|
||||
return options;
|
||||
|
Loading…
x
Reference in New Issue
Block a user