diff --git a/src/map/map.js b/src/map/map.js index e0593fd..2660614 100644 --- a/src/map/map.js +++ b/src/map/map.js @@ -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(`${node.city}
DC: ${node.datacenter}`); + let marker = L.marker(node.location).addTo(map).bindPopup(`${node.city}
${node.datacenter}`); let ele = document.createElement("div"); ele.innerHTML = `${node.city}`; @@ -175,4 +176,6 @@ for (let connection of connections) { ).addTo(map).bindPopup(label); } -sidebarContent.onclick = dismissPopup; \ No newline at end of file +sidebarContent.onclick = dismissPopup; + +L.marker([12.6278528, -7.9979628], {opacity: 0.1}).addTo(map).bindPopup(`what's a server?`); \ No newline at end of file