From 64e3488ea500798b3d7da3f6230071344d5b4e13 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Tue, 9 Feb 2016 16:52:34 +0100 Subject: [PATCH] Added pair of nodes in the testing map. --- .../include/javascript/map/MapController.js | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/javascript/map/MapController.js b/pandora_console/include/javascript/map/MapController.js index 8f0ac1555f..025312d40a 100644 --- a/pandora_console/include/javascript/map/MapController.js +++ b/pandora_console/include/javascript/map/MapController.js @@ -30,19 +30,35 @@ MapController.prototype.init_map = function() { svg.append("g").append("circle") .attr("id", "node_10") .attr("class", "node") - .attr("cx", "100") - .attr("cy", "100") + .attr("cx", "20") + .attr("cy", "20") .attr("style", "fill: rgb(128, 186, 39);") .attr("r", "5"); svg.append("g").append("circle") .attr("id", "node_11") .attr("class", "node") - .attr("cx", "200") - .attr("cy", "200") + .attr("cx", "20") + .attr("cy", "780") .attr("style", "fill: rgb(255, 0, 0);") .attr("r", "10"); + svg.append("g").append("circle") + .attr("id", "node_12") + .attr("class", "node") + .attr("cx", "780") + .attr("cy", "780") + .attr("style", "fill: rgb(255, 255, 0);") + .attr("r", "10"); + + svg.append("g").append("circle") + .attr("id", "node_12") + .attr("class", "node") + .attr("cx", "780") + .attr("cy", "30") + .attr("style", "fill: rgb(255, 0, 255);") + .attr("r", "10"); + this.init_events(); };