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 var query = manifold.query_store.find_analyzed_query(options.query_uuid);
13 this.method = query.object;
15 var keys = manifold.metadata.get_key(this.method);
16 this.key = (keys && keys.length == 1) ? keys[0] : null;
18 /* Setup query and record handlers */
19 this.listen_query(options.query_uuid);
20 this.listen_query(options.query_uuid, 'all');
22 /* GUI setup and event binding */
23 this.initialize_map();
26 initialize_map: function() {
27 // TODO: this is static, retrieve directly nodes
33 on_show: function(e) {
37 on_filter_added: function(filter) {
41 on_new_record: function(record) {
45 on_record_received: function(record) {
49 $.plugin('SensLabMap', SensLabMap);