On Jun 8, 3:48 pm, William <william.g...@gmail.com> wrote:
> same as the advice in your previous 
> threadhttp://groups.google.com/group/google-maps-js-api-v3/browse_thread/th...
>
> 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');
>
> ...

Thanks, still no clustering. oh well

-- 
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