same as the advice in your previous thread
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/e8589d0bd8018cb2

you have a jquery $.get with a jquery $each iterator inside it, so the
construction of the MarkerClusterer and fitting the map to the bounds
should happen after the $each has completed.


$.get(filename, function(data) {

  $('waypoint', data).each(function() {
  // parse XML
  // create Marker
  // add Marker to markers array
  // extend bounds
  });

  markerClusterer =  new MarkerClusterer(map, markers);
  map.fitBounds(bounds);

},'xml');


...

-- 
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 google-maps-js-api...@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to