I am trying to use the clusterer as stated in the README ( plugin is
running well ...)
and I got an error when displaying the map...
addDescriptionToMarker is not defined
(no name)()22 (line 169)
(no name)()ym4r-gm.js (line 67)
[Break on this error] map.addOverlay(new GMarker(new GLatLng
(47.7377071331,-2.9257965088),{title : "aa...
here is the generated script...
<script type="text/javascript">
var icon_contact = addOptionsToIcon(new GIcon(),{image : "/images/
gm_contact.png",iconAnchor : new GPoint(10,34),shadow : "/images/
gm_shadow.png",infoWindowAnchor : new GPoint(9,2),shadowSize : new
GSize(37,34),iconSize : new GSize(20,34)});
var icon_reference = addOptionsToIcon(new GIcon(),{image : "/images/
gm_reference.png",iconAnchor : new GPoint(10,34),shadow : "/images/
gm_shadow.png",infoWindowAnchor : new GPoint(9,2),shadowSize : new
GSize(37,34),iconSize : new GSize(20,34)});
var icon_cluster = addOptionsToIcon(new GIcon(),{image : "/images/
gm_cluster.png",iconAnchor : new GPoint(10,34),shadow : "/images/
gm_shadow.png",infoWindowAnchor : new GPoint(9,2),shadowSize : new
GSize(37,34),iconSize : new GSize(20,34)});var map;
window.onload = addCodeToFunction(window.onload,function() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map_div"));
map.setCenter(new GLatLng(47.7377071331,-2.9257965088),10);
map.setCenter(new GLatLng(47.7377071331,-2.9257965088),
10);GEvent.addListener(map,"click",function processMoveEndEvent()
{ var centerPoint = map.getCenter(); });
map.addOverlay(new GMarker(new GLatLng(47.7377071331,-2.9257965088),
{title : "aabe307"}));
map.addOverlay(new Clusterer([addDescriptionToMarker
(addInfoWindowTabsToMarker(new GMarker(new GLatLng
(47.6666508055,-2.9833339433),{title : "aad725",icon : icon_contact}),
[new GInfoWindowTab("Membre","pas de nom<br />aad725<br
/>Membre
depuis : Ven, 03 Mar 2007 16:07:24 +0000<br /
>r.caroll at
recolocal.com")],{}),"aad725"),addDescriptionToMarker
(addInfoWindowTabsToMarker(new GMarker(new GLatLng
(47.6666508055,-2.9833339433),{title : "aede581",icon :
icon_contact}),[new GInfoWindowTab("Membre","pas de nom<br /
>aede581<br />Membre depuis : Ven, 03 Mar 2007 16:19:28 +0000<br /
>l.sfez at
recolocal.com")],{}),"aede581"),addDescriptionToMarker
(addInfoWindowTabsToMarker(new GMarker(new GLatLng
(50.633311677,3.0666420067),{title : "fraf492",icon :
icon_reference}),[new GInfoWindowTab("Membre","Isabelle
Merlin<br /
>fraf492<br />Membre depuis : Ven, 27 Mar 2006 17:25:54 +0000<br /
>henri_devos at
yahoo.fr")],{}),"fraf492"),addDescriptionToMarker
(addInfoWindowTabsToMarker(new GMarker(new GLatLng
(47.6666508055,-2.9833339433),{title : "gere668",icon :
icon_contact}),[new GInfoWindowTab("Membre","pas de nom<br /
>gere668<br />Membre depuis : Ven, 03 Mar 2007 15:57:27 +0000<br /
>m.callon at
recolocal.com")],{}),"gere668"),addDescriptionToMarker
(addInfoWindowTabsToMarker(new GMarker(new GLatLng
(47.6666508055,-2.9833339433),{title : "glefe726",icon :
icon_contact}),[new GInfoWindowTab("Membre","pas de nom<br /
>glefe726<br />Membre depuis : Ven, 03 Mar 2007 18:31:36 +0000<br /
>p.ansart at
recolocal.com")],{}),"glefe726"),addDescriptionToMarker
(addInfoWindowTabsToMarker(new GMarker(new GLatLng
(47.5889152331,-2.897901535),{title : "gris253",icon : icon_contact}),
[new GInfoWindowTab("Membre","Tatiana Govolin<br
/>gris253<br /
>Membre depuis : Ven, 18 Mar 2007 07:31:24 +0000<br /
>t.govolin at
recolocal.com")],{}),"gris253"),addDescriptionToMarker
(addInfoWindowTabsToMarker(new GMarker(new GLatLng
(48.9500189708,2.0000237754),{title : "las737",icon : icon_contact}),
[new GInfoWindowTab("Membre","Pierre Ruchard<br
/>las737<br />Membre
depuis : Ven, 10 Mar 2006 16:18:54 +0000<br />avril78 at
caillard.org")],
{}),"las737"),addDescriptionToMarker(addInfoWindowTabsToMarker(new
GMarker(new GLatLng(48.8999997553,2.0166395514),{title :
"min13",icon : icon_contact}),[new
GInfoWindowTab("Membre","Charles
Berlou<br />min13<br />Membre depuis : Ven, 27 Mar 2006 16:32:36
+0000<br />mduboit at
yahoo.fr")],{}),"min13"),addDescriptionToMarker
(addInfoWindowTabsToMarker(new GMarker(new GLatLng
(48.8499805398,2.3299901696),{title : "sid140",icon : icon_contact}),
[new GInfoWindowTab("Membre","Oscar Petard<br
/>sid140<br />Membre
depuis : Ven, 28 Mar 2006 22:10:55 +0000<br /
>delphinecroux at yahoo.fr")],{}),"sid140")],icon_cluster,
2,10,2,10));map.addControl(new GSmallMapControl());
}
});
</script>