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:
Jon Atkins 2015-07-20 09:34:03 +01:00
parent 45d07d026a
commit ed0cedfc81

View File

@ -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;