X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fgooglemap%2Fstatic%2Fjs%2Fgooglemap.js;h=a3d9ba2761d4eef4cd33927c89cba3ed9184ff58;hb=754158ae8e3a6b8e1d5cfeed23de32e4ad941a29;hp=8501c7410b8fe1ba9811863c14b442da71718fd3;hpb=efc6ef6e1df9bb9543a0d15d6a36898da1481312;p=unfold.git diff --git a/plugins/googlemap/static/js/googlemap.js b/plugins/googlemap/static/js/googlemap.js index 8501c741..a3d9ba27 100644 --- a/plugins/googlemap/static/js/googlemap.js +++ b/plugins/googlemap/static/js/googlemap.js @@ -8,305 +8,421 @@ * - infowindow is not properly reopened when the maps does not have the focus */ -// events that happen in the once-per-view range -googlemap_debug=false; -// more on a on-per-record basis -googlemap_debug_detailed=false; +GOOGLEMAP_BGCOLOR_RESET = 0; +GOOGLEMAP_BGCOLOR_ADDED = 1; +GOOGLEMAP_BGCOLOR_REMOVED = 2; (function($){ + // events that happen in the once-per-view range + var debug=false; + debug=true; + + // this now should be obsolete, rather use plugin_debug in plugin.js + // more on a on-per-record basis + var debug_deep=false; + // debug_deep=true; + var GoogleMap = Plugin.extend({ - init: function(options, element) { + /************************************************************************** + * CONSTRUCTOR + **************************************************************************/ + + init: function(options, element) + { this._super(options, element); /* Member variables */ - // query status - this.received_all = false; - this.received_set = false; - this.in_set_backlog = []; - - // we keep a couple of global hashes - // lat_lon --> { marker,