X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fgooglemap%2Fstatic%2Fjs%2Fgooglemap.js;h=b8bbf538b0382886453fb56752a61fd35c77bd7b;hb=0cb9639cd2b26d8836dc61d40d2028d6fda95b1b;hp=118cfa6012876bf446d640c783c4e959b058735b;hpb=d549b83164f10793e799da646e6704844607f190;p=myslice.git diff --git a/plugins/googlemap/static/js/googlemap.js b/plugins/googlemap/static/js/googlemap.js index 118cfa60..b8bbf538 100644 --- a/plugins/googlemap/static/js/googlemap.js +++ b/plugins/googlemap/static/js/googlemap.js @@ -8,7 +8,9 @@ * - infowindow is not properly reopened when the maps does not have the focus */ -googlemap_debug=true; +// events that happen in the once-per-view range +googlemap_debug=false; +// more on a on-per-record basis googlemap_debug_detailed=false; (function($){ @@ -16,31 +18,47 @@ googlemap_debug_detailed=false; var GoogleMap = Plugin.extend({ init: function(options, element) { - if (googlemap_debug) messages.debug("GoogleMap.init"); this._super(options, element); /* Member variables */ // query status this.received_all = false; this.received_set = false; - this.in_set_buffer = []; + this.in_set_backlog = []; - // key -> { marker, checked } - this.map_markers = {} + // we keep a couple of global hashes + // lat_lon --> { marker,