[TASK] CGL - Optimize returns and unnecessary math
This commit is contained in:
parent
c7b58d5743
commit
c9458ffcae
3 changed files with 5 additions and 11 deletions
|
|
@ -135,7 +135,7 @@ define(["map/clientlayer", "map/labelslayer",
|
|||
return "distance" in d && d.type !== "VPN";
|
||||
});
|
||||
|
||||
var lines = graph.map(function (d) {
|
||||
return graph.map(function (d) {
|
||||
var opts = {
|
||||
color: d.type === "Kabel" ? "#50B0F0" : linkScale(d.tq).hex(),
|
||||
weight: 4,
|
||||
|
|
@ -156,8 +156,6 @@ define(["map/clientlayer", "map/labelslayer",
|
|||
|
||||
return line;
|
||||
});
|
||||
|
||||
return lines;
|
||||
}
|
||||
|
||||
var iconOnline = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue