Properly centers marker clusters.
authorStéphane Jacob <sj@m4x.org>
Sun, 12 Jun 2011 17:37:01 +0000 (19:37 +0200)
committerStéphane Jacob <sj@m4x.org>
Sun, 12 Jun 2011 17:37:01 +0000 (19:37 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Makefile
htdocs/javascript/maps.js

index c2dc546..0903bb5 100644 (file)
--- 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
index 97235c2..f6aa9f6 100644 (file)
@@ -69,7 +69,7 @@ function map_initialize()
             });
             markers.push(marker);
         }
-        var mc = new MarkerClusterer(map, markers);
+        var mc = new MarkerClusterer(map, markers, {'averageCenter': true});
     });
 }