> on the example the data are in json , my data are in xml so if I try > to use this script I have more error:
Doesn't matter, the clusterer is not interested in where the data comes from that you use to build your markers. You already have your script that builds markers from XML, why are tou trying to add that part from the example. READ the example and understand what the parts do, then you will be able to apply your knowledge to your own script. Here are important parts highlighted > var markers = []; creates a global array to store your markers ; name it what you like. > markers.push(marker); stores each marker as it is created > var markerCluster = new MarkerClusterer(map, markers); creates a clusterer, name it what you like, and gives it the array of markers to work with. An alternative way to set up a clusterer would be to create it "empty" and then add your array of markers later (after you have finished creating them all) using addMarkers() If you cannot understand what is happening, you might have to be less ambitious, or hire someone to do it for you. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
