X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fgooglemap%2Fstatic%2Fjs%2Fgooglemap.js;h=082a0c5bfce18d45fc3bf071737d86fe481ce497;hb=097d8cd5e047d0a8e0da6547698e46861f802878;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..082a0c5b 100644 --- a/plugins/googlemap/static/js/googlemap.js +++ b/plugins/googlemap/static/js/googlemap.js @@ -8,39 +8,66 @@ * - infowindow is not properly reopened when the maps does not have the focus */ -googlemap_debug=true; -googlemap_debug_detailed=false; - (function($){ + // events that happen in the once-per-view range + var debug=false; + debug=true; + + // more on a on-per-record basis + var debug_deep=false; + // debug_deep=true; + 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,