From: Stéphane Jacob Date: Sun, 12 Jun 2011 17:37:01 +0000 (+0200) Subject: Properly centers marker clusters. X-Git-Tag: xorg/1.1.2~21 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=656132ec0ee4340ee613917c3eac2b9ce3e52ab1;p=platal.git Properly centers marker clusters. Signed-off-by: Stéphane Jacob --- diff --git a/Makefile b/Makefile index c2dc546..0903bb5 100644 --- a/Makefile +++ b/Makefile @@ -245,8 +245,9 @@ $(JSTREE_PATH): ## maps: htdocs/javascript/markerclusterer.js +## Try and use taged version asap (from http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclusterer/…). htdocs/javascript/markerclusterer.js: - wget http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclusterer/1.0/src/markerclusterer_compiled.js -O htdocs/javascript/markerclusterer.js + wget http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/src/markerclusterer_compiled.js -O htdocs/javascript/markerclusterer.js ## ## lists rpc diff --git a/htdocs/javascript/maps.js b/htdocs/javascript/maps.js index 97235c2..f6aa9f6 100644 --- a/htdocs/javascript/maps.js +++ b/htdocs/javascript/maps.js @@ -69,7 +69,7 @@ function map_initialize() }); markers.push(marker); } - var mc = new MarkerClusterer(map, markers); + var mc = new MarkerClusterer(map, markers, {'averageCenter': true}); }); }