2 var SensLabMap = Plugin.extend({
3 init: function(options, element) {
4 this._super(options, element);
8 this.received_all = false;
9 this.received_set = false;
10 this.in_set_buffer = Array();
12 this.el().on('show', this, this.on_show);
14 var query = manifold.query_store.find_analyzed_query(options.query_uuid);
15 this.method = query.object;
17 var keys = manifold.metadata.get_key(this.method);
18 this.key = (keys && keys.length == 1) ? keys[0] : null;
20 /* Setup query and record handlers */
21 this.listen_query(options.query_uuid);
22 this.listen_query(options.query_uuid, 'all');
24 /* GUI setup and event binding */
25 this.initialize_map();
28 initialize_map: function() {
29 // TODO: this is static, retrieve directly nodes
35 on_show: function(e) {
39 on_filter_added: function(filter) {
43 on_new_record: function(record) {
47 on_record_received: function(record) {
51 $.plugin('SensLabMap', SensLabMap);