X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fgooglemap%2Fstatic%2Fjs%2Fgooglemap.js;h=c51eb4f4fa593fa8907e4ea4537b2154f3c2a65f;hb=1a17fe1834728dff6210388a9bda42dd20469242;hp=6db222d49f75ea80556ce61f27ff218aafdf60e2;hpb=1053f701968bcab8050a4758ad3c0e3818764bd6;p=myslice.git diff --git a/plugins/googlemap/static/js/googlemap.js b/plugins/googlemap/static/js/googlemap.js index 6db222d4..c51eb4f4 100644 --- a/plugins/googlemap/static/js/googlemap.js +++ b/plugins/googlemap/static/js/googlemap.js @@ -8,6 +8,10 @@ * - infowindow is not properly reopened when the maps does not have the focus */ +GOOGLEMAP_BGCOLOR_RESET = 0; +GOOGLEMAP_BGCOLOR_ADDED = 1; +GOOGLEMAP_BGCOLOR_REMOVED = 2; + (function($){ // events that happen in the once-per-view range @@ -21,27 +25,30 @@ var GoogleMap = Plugin.extend({ - init: function(options, element) { - this.classname="googlemap"; + /************************************************************************** + * 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,