Topo2: position grid nodes it relation to the sprite layer size

Change-Id: I634b89dcc60c2a9aafbe0ec08d6075892d5063f6
diff --git a/web/gui/src/main/webapp/app/view/topo2/topo2Region.js b/web/gui/src/main/webapp/app/view/topo2/topo2Region.js
index 929f1c9..ba1a8c4 100644
--- a/web/gui/src/main/webapp/app/view/topo2/topo2Region.js
+++ b/web/gui/src/main/webapp/app/view/topo2/topo2Region.js
@@ -45,6 +45,17 @@
                     instance = this;
                     this.model = null;
                 },
+                addLayout: function (data) {
+
+                    // TODO: Dynamically change the Geo Map from the layout data
+
+                    if (data.bgType === 'grid') {
+                        t2sls.loadLayout(data.bgId);
+                        t2sls.show();
+                    } else {
+                        t2sls.hide();
+                    }
+                },
                 addRegion: function (data) {
 
                     var RegionModel = Model.extend({
@@ -73,13 +84,6 @@
                         t2bcs.hide();
                     }
 
-                    // TODO: This should load the sprite layer from the region data
-                    if (this.model.get('id') === 'c01') {
-                        t2sls.loadLayout('segmentRouting');
-                        t2sls.show();
-                    } else {
-                        t2sls.hide();
-                    }
                 },
                 isRootRegion: function () {
                     return this.model.get('id') === ROOT;