From aa4d616f76726d8ace17518a11dd603856674d85 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jordan=20Aug=C3=A9?= Date: Mon, 7 Jul 2014 10:49:24 +0200 Subject: [PATCH] updated gmaps plugin --- plugins/googlemap/static/js/googlemap.js | 481 ++++++++++-------- plugins/googlemap/templates/googlemap.html | 2 +- plugins/querytable/static/js/querytable.js | 211 ++++---- .../queryupdater/static/js/queryupdater.js | 81 +-- 4 files changed, 419 insertions(+), 356 deletions(-) diff --git a/plugins/googlemap/static/js/googlemap.js b/plugins/googlemap/static/js/googlemap.js index 8a740b2a..0ecf1134 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,