|
@@ -102,7 +102,7 @@ define(["map/clientlayer", "map/labelslayer",
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- function addLinksToMap(dict, linkScale, graph, router) {
|
|
|
+ function addLinksToMap(dict, linkScale, linkScaleBackbone, graph, router) {
|
|
|
graph = graph.filter( function (d) {
|
|
|
return "distance" in d && !d.vpn
|
|
|
})
|
|
@@ -113,6 +113,8 @@ define(["map/clientlayer", "map/labelslayer",
|
|
|
opacity: 0.5,
|
|
|
dashArray: "none"
|
|
|
}
|
|
|
+ if ( d.backbone )
|
|
|
+ opts.color = linkScaleBackbone(d.tq).hex()
|
|
|
|
|
|
var line = L.polyline(d.latlngs, opts)
|
|
|
|
|
@@ -137,7 +139,7 @@ define(["map/clientlayer", "map/labelslayer",
|
|
|
var iconAlert = iconLost
|
|
|
var iconNew = { color: "#1566A9", fillColor: "#93E929", radius: 6, fillOpacity: 1.0, opacity: 0.5, weight: 2 }
|
|
|
|
|
|
- return function (config, linkScale, sidebar, router, buttons) {
|
|
|
+ return function (config, linkScale, linkScaleBackbone, sidebar, router, buttons) {
|
|
|
var self = this
|
|
|
var barycenter
|
|
|
var groupOnline, groupOffline, groupNew, groupLost, groupLines
|
|
@@ -378,7 +380,7 @@ define(["map/clientlayer", "map/labelslayer",
|
|
|
if (groupLines)
|
|
|
groupLines.clearLayers()
|
|
|
|
|
|
- var lines = addLinksToMap(linkDict, linkScale, data.graph.links, router)
|
|
|
+ var lines = addLinksToMap(linkDict, linkScale, linkScaleBackbone, data.graph.links, router)
|
|
|
groupLines = L.featureGroup(lines).addTo(map)
|
|
|
|
|
|
barycenter = calcBarycenter(data.nodes.all.filter(has_location))
|