Hi Rossko,

I have implemented the code after the  marker for-loop as below and
still no joy?

Any ideas.

                var x = new XmlParser(xml);

                // get the location nodes
                var locs = x.getNodes('location');

                for(var i=0;i<locs.length;i++) {
                        // pull the data for each location from the XML
                                var lat = x.getNodeContents('lat',locs[i]);
                                var long = x.getNodeContents('long',locs[i]);
                                var name = x.getNodeContents('name',locs[i]);
                                //var atm = x.getNodeContents('atm',locs[i]);
                                var branch = 
x.getNodeContents('branch',locs[i]);
                                var tabs = x.getNodes('tab',locs[i]);
                                var point = new GLatLng(lat,long);
                                if(branch == 'true'){
                                        var icon = GoogleMap.branchIcon;
                                }
                                var marker = new 
GMarker(point,{icon:icon,title:name});
                                var popupTabs = [];
                                        marker.contentOutput = [];
                                        for(var j=0;j<tabs.length;j++) {
                                                tabTitle = 
tabs[j].getAttribute('title');
                                                tabContents = 
x.getContents(tabs[j]);
                                                var tab = new 
GInfoWindowTab(tabTitle,tabContents);
                                                popupTabs.push(tab);
                                                
marker.contentOutput.push({title:tabTitle,content:tabContents});
                                        }
                                        (function(){
                                                var _popupTabs = popupTabs;
                                                marker.showPopupInfo = 
function() {
                                                        
this.openInfoWindowTabsHtml(_popupTabs,{maxWidth:256});
                                                }
                                // bind the tabs to the info window
                                
marker.bindInfoWindowTabsHtml(_popupTabs,{maxWidth:256});
                        })()
                        marker.titleText = name;
                        if(branch == 'true'){
                                GoogleMap.branches.push(marker);
                        }
                }
                var cluster=new ClusterMarker(GoogleMap,
{ markers:GoogleMap.branches } );
                cluster.fitMapToMarkers();
        },

thanks again for any help

On Jan 27, 12:19 pm, Rossko <[email protected]> wrote:
> As I said, you need to identify the end of your marker for-loop and do
> the clusterer actions AFTER it.

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