X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fgooglemap%2Fstatic%2Fjs%2Fgooglemap.js;h=d3784b8aa22c647d0a4db326e6c022516234718b;hb=9911bffa231271419b7f8e7a9f5a1bfa20f3e58f;hp=424b3aad6f979a76584dc2e1c1c7be2c8befeb7f;hpb=7e0af7840da289a7fdf17bc0f8ced1d20b48556e;p=myslice.git diff --git a/plugins/googlemap/static/js/googlemap.js b/plugins/googlemap/static/js/googlemap.js index 424b3aad..d3784b8a 100644 --- a/plugins/googlemap/static/js/googlemap.js +++ b/plugins/googlemap/static/js/googlemap.js @@ -35,7 +35,7 @@ googlemap_debug_detailed=false; /* XXX Events */ this.elmt().on('show', this, this.on_show); // TODO in destructor - // $(window).unbind('Hazelnut'); + // $(window).unbind('QueryTable'); var query = manifold.query_store.find_analyzed_query(this.options.query_uuid); this.object = query.object; @@ -75,6 +75,7 @@ googlemap_debug_detailed=false; var myOptions = { zoom: this.options.zoom, center: center, + scrollwheel: false, mapTypeId: google.maps.MapTypeId.ROADMAP, } @@ -104,8 +105,8 @@ googlemap_debug_detailed=false; // XXX BACKSLASHES original code was reading like this //return this.escape_id(key_value).replace(/\\/g, ''); // however this sequence removes backslashes from hrn's and as a result - // resources_selected was getting all mixed up - // hazelnut does publish hrn's with backslashes and that seems like the thing to do + // queryupdater was getting all mixed up + // querytable does publish hrn's with backslashes and that seems like the thing to do return key_value; }, @@ -146,7 +147,11 @@ googlemap_debug_detailed=false; // retrieve DOM checkbox and make sure it is checked/unchecked set_checkbox: function(record, checked) { var hrn=this.record_hrn (record); - if (! hrn) { messages.warning ("googlemap.set_checkbox: record has no hrn"); return; } + if (! hrn) { + try {messages.warning ("googlemap.set_checkbox: record has no hrn -- hostname="+record.hostname); } + catch (err) {messages.warning ("googlemap.set_checkbox: record has no hrn"); } + return; + } var checkbox_s = this.by_hrn [ hrn ]; if (! checkbox_s ) { messages.warning ("googlemap.set_checkbox: could not spot checkbox for hrn "+hrn); return; } checkbox_s.checkbox.prop('checked',checked);