Added background image of a us-map as a provisional eye-candy.
diff --git a/utils/junit/src/main/java/org/onlab/junit/TestUtils.java b/utils/junit/src/main/java/org/onlab/junit/TestUtils.java
index 48cba63..04e9600 100644
--- a/utils/junit/src/main/java/org/onlab/junit/TestUtils.java
+++ b/utils/junit/src/main/java/org/onlab/junit/TestUtils.java
@@ -140,7 +140,7 @@
*
* @param constructor Constructor to call
* @param <T> type of the object to create
- * @return created object of type <T>
+ * @return created object of type T
* @throws TestUtilsException if there are reflection errors while calling
* the constructor
*/
diff --git a/web/gui/src/main/webapp/img/us-map.png b/web/gui/src/main/webapp/img/us-map.png
new file mode 100644
index 0000000..96e84d6
--- /dev/null
+++ b/web/gui/src/main/webapp/img/us-map.png
Binary files differ
diff --git a/web/gui/src/main/webapp/network.js b/web/gui/src/main/webapp/network.js
index 00dee39..a116faa 100644
--- a/web/gui/src/main/webapp/network.js
+++ b/web/gui/src/main/webapp/network.js
@@ -432,6 +432,14 @@
// .attr('id', 'zoomable')
// .call(d3.behavior.zoom().on("zoom", zoomRedraw));
+ network.svg.append('svg:image')
+ .attr({
+ id: 'bg',
+ width: view.width,
+ height: view.height,
+ 'xlink:href': 'img/us-map.png'
+ });
+
// function zoomRedraw() {
// d3.select("#zoomable").attr("transform",
// "translate(" + d3.event.translate + ")"
diff --git a/web/gui/src/main/webapp/onos.css b/web/gui/src/main/webapp/onos.css
index 3c1fb07..bffcc01 100644
--- a/web/gui/src/main/webapp/onos.css
+++ b/web/gui/src/main/webapp/onos.css
@@ -79,6 +79,10 @@
/*border: 1px dashed red;*/
}
+svg #bg {
+ opacity: 0.5;
+}
+
/*
* Network Graph elements ======================================
@@ -227,7 +231,7 @@
width: 280px;
right: -300px;
opacity: 0;
- background-color: rgba(255,255,255,0.5);
+ background-color: rgba(255,255,255,0.8);
padding: 10px;
color: black;