Hi Ralph,

This is the entire script;

var markerCluster;
var map;

      function initialize() {
                if(GBrowserIsCompatible()) {
          map = new GMap2(document.getElementById('map'));
          map.setCenter(new GLatLng(39.91, 116.38), 2);
          map.addControl(new GLargeMapControl());
          var icon = new GIcon(G_DEFAULT_ICON);
          icon.image = "http://chart.apis.google.com/chart?
cht=mm&chs=24x32&chco=FFFFFF,008CFF,000000&ext=.png";
          GDownloadUrl("phpsqlajax_genxml2.php?bogus="+(new Date
()).getTime(),processMyData); //Calls the xml-data and sends it to
processMYyData-function
        }

      }
       function createMarker(point) {
                                        var markerOnMap = new GMarker(point);
                                        var html = "<b>" + name + "</b> <br/>";
                                        GEvent.addListener(markerOnMap, 
'click', function()
{ markerOnMap.openInfoWindowHtml(html);});
                                        return markerOnMap;
                                }

    function processMyData(data) {
        var markersfoo = [];
    var xml = GXml.parse(data);
    var markersXml = xml.documentElement.getElementsByTagName
("marker");
    //var markersXml = [];
             for (var i = 0; i < markersXml.length; ++i) {
              var name = markersXml[i].getAttribute("id");
                                //var address = 
markers[i].getAttribute("address");
                                var point = new 
GLatLng(parseFloat(markersXml[i].getAttribute
("lat")), parseFloat(markersXml[i].getAttribute("lng")));
                                var markerOnMap = createMarker(point);
                        markersfoo.push(markerOnMap);
                        markerCluster = new MarkerClusterer(map, markersfoo);
          }
  }

On 14 Maj, 21:46, Ralph Ames <[email protected]> wrote:
> Have you loaded the MarkerClusterer script?
>
> Ralph
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to