Add internal connection, update NL latencies
All checks were successful
/ deploy (push) Successful in 34s
All checks were successful
/ deploy (push) Successful in 34s
This commit is contained in:
parent
4fd092fb1a
commit
4a30d304cd
1 changed files with 8 additions and 5 deletions
|
@ -56,11 +56,12 @@ const nodes = {
|
|||
}
|
||||
|
||||
const connections = [
|
||||
{ from: 'nl1', to: 'se1', latency: 20 },
|
||||
{ from: 'nl1', to: 'de1', latency: 10 },
|
||||
{ from: 'nl1', to: 'fr1', latency: 10 },
|
||||
{ from: 'nl1', to: 'se1', latency: 24 },
|
||||
{ from: 'nl1', to: 'de1', latency: 12 },
|
||||
{ from: 'nl1', to: 'fr1', latency: 17 },
|
||||
{ from: 'de1', to: 'pl1', latency: 25 },
|
||||
{ from: 'de1', to: 'fr1', latency: 16 },
|
||||
{ from: 'pl1', to: 'se1', latency: 33 }
|
||||
];
|
||||
|
||||
/* ------ */
|
||||
|
@ -141,7 +142,7 @@ for (let nodeId of Object.keys(nodes)) {
|
|||
let node = nodes[nodeId];
|
||||
console.log(`Adding node: ${nodeId} (${node.city}; ${node.hostname})`);
|
||||
|
||||
let marker = L.marker(node.location).addTo(map).bindPopup(`<strong>${node.city}</strong><br>DC: ${node.datacenter}`);
|
||||
let marker = L.marker(node.location).addTo(map).bindPopup(`<strong>${node.city}</strong><br>${node.datacenter}`);
|
||||
|
||||
let ele = document.createElement("div");
|
||||
ele.innerHTML = `<strong>${node.city}</strong>`;
|
||||
|
@ -175,4 +176,6 @@ for (let connection of connections) {
|
|||
).addTo(map).bindPopup(label);
|
||||
}
|
||||
|
||||
sidebarContent.onclick = dismissPopup;
|
||||
sidebarContent.onclick = dismissPopup;
|
||||
|
||||
L.marker([12.6278528, -7.9979628], {opacity: 0.1}).addTo(map).bindPopup(`what's a server?`);
|
Loading…
Add table
Add a link
Reference in a new issue