X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fgooglemap%2Fstatic%2Fjs%2Fgooglemap.js;h=d3784b8aa22c647d0a4db326e6c022516234718b;hb=9911bffa231271419b7f8e7a9f5a1bfa20f3e58f;hp=3f3c995034e2992fca7f750ce05e2f31b6eacbfa;hpb=fc29adc67fe378ae2b962fe99bd2bc1513d9dffd;p=myslice.git diff --git a/plugins/googlemap/static/js/googlemap.js b/plugins/googlemap/static/js/googlemap.js index 3f3c9950..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; @@ -59,7 +59,7 @@ googlemap_debug_detailed=false; /* PLUGIN EVENTS */ on_show: function(e) { - if (googlemap_debug) messages.debug("on_show"); + if (googlemap_debug) messages.debug("googlemap.on_show"); var googlemap = e.data; google.maps.event.trigger(googlemap.map, 'resize'); }, // on_show @@ -75,6 +75,7 @@ googlemap_debug_detailed=false; var myOptions = { zoom: this.options.zoom, center: center, + scrollwheel: false, mapTypeId: google.maps.MapTypeId.ROADMAP, } @@ -101,7 +102,12 @@ googlemap_debug_detailed=false; throw "Not implemented"; break; } - return unfold.escape_id(key_value).replace(/\\/g, ''); + // 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 + // queryupdater was getting all mixed up + // querytable does publish hrn's with backslashes and that seems like the thing to do + return key_value; }, // return { marker: gmap_marker, ul :