X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fgooglemap%2Fstatic%2Fjs%2Fgooglemap.js;h=9cde18ce68fbe8127856e35aa00f8b8d5c586035;hb=91dec1137db6f3b461ab40542f06b5fa93a2efa5;hp=34b2b8de563b927c0af4d205a5ec6ae47a8e4c6d;hpb=a387c58445b7cde5ecf05a022c5a875645eeb463;p=myslice.git diff --git a/plugins/googlemap/static/js/googlemap.js b/plugins/googlemap/static/js/googlemap.js index 34b2b8de..9cde18ce 100644 --- a/plugins/googlemap/static/js/googlemap.js +++ b/plugins/googlemap/static/js/googlemap.js @@ -8,16 +8,21 @@ * - 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; - (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) { + this.classname="googlemap"; this._super(options, element); /* Member variables */ @@ -28,21 +33,33 @@ googlemap_debug_detailed=false; // we keep a couple of global hashes // lat_lon --> { marker,