- var
- self = this,
- maps = {},
- $container = $('#maps-container');
-
- $.each(this.sites, function(i, site) {
- var $div = $("<div />").appendTo($container);
- maps[site] = new Senslab.Map($div);
- maps[site].addNodes(self.nodes[site]);
- });
+ var uuid = this.options.query_uuid;
+ var key = this.key
+
+ Senslab.createMaps($("#maps-container"), this.sites, this.nodes);
+ Senslab.notify = function(node) {
+ manifold.raise_event(uuid, node.selected ? SET_ADD : SET_REMOVED, node[key]);
+ }