--- a/img/map.js 2015-11-13 12:27:56.734180919 +0100 +++ b/img/map.js 2016-01-20 12:08:39.417287023 +0100 @@ -276,11 +276,18 @@ function createMap(deviceArray, devlinkArray, nodeArray, nodelinkArray, selection, startLon, startLat) { - var linkstyles = [ - { strokeColor: '#00ff00', strokeOpacity: 0.5 }, - { strokeColor: '#0000ff', strokeOpacity: 0.5 }, - { strokeColor: '#ff0000', strokeOpacity: 0.5 } - ]; + var linkstyles = []; + // wire + linkstyles[6] = { strokeColor: '#80ff00', strokeOpacity: 0.5 }; // 10 Mb/s Ethernet + linkstyles[7] = { strokeColor: '#00ff00', strokeOpacity: 0.5 }; // 100 Mb/s Fast Ethernet + linkstyles[8] = { strokeColor: '#008000', strokeOpacity: 0.5 }; // 1 Gigabit Ethernet + // wireless + linkstyles[100] = { strokeColor: '#0000ff', strokeOpacity: 0.5 }; // WiFi - 2,4 GHz + linkstyles[101] = { strokeColor: '#0080ff', strokeOpacity: 0.5 }; // WiFi - 5 GHz + // fiber + linkstyles[204] = { strokeColor: '#ff0000', strokeOpacity: 0.5 }; // 100 Mb/s Fast Ethernet + linkstyles[205] = { strokeColor: '#ff8000', strokeOpacity: 0.5 }; // 1 Gigabit Ethernet + var linkweights = []; linkweights[10000] = 1; linkweights[25000] = 1; @@ -483,7 +490,7 @@ linkstyles[devlinkArray[i].type].strokeWidth = linkweights[devlinkArray[i].speed]; devlinks.push(new OpenLayers.Feature.Vector( new OpenLayers.Geometry.LineString(points), - devlinkArray[i], linkstyles[devlinkArray[i].type])); + devlinkArray[i], linkstyles[devlinkArray[i].technology])); } var devlinkLbl = OpenLayers.Lang.translate("Device Links"); @@ -523,7 +530,7 @@ linkstyles[nodelinkArray[i].type].strokeWidth = linkweights[nodelinkArray[i].speed]; nodelinks.push(new OpenLayers.Feature.Vector( new OpenLayers.Geometry.LineString(points), - nodelinkArray[i], linkstyles[nodelinkArray[i].type])); + nodelinkArray[i], linkstyles[nodelinkArray[i].technology])); } var nodelinkLbl = OpenLayers.Lang.translate("Node Links");