On Feb 25, 9:57 am, estherM <[email protected]> wrote: > I'm trying to combine the MarkerClusterer code with the info balloons > code found athttp://www.geocodezip.com/v3_markers_infowindows.html. > Before I added the code that creates a listener and info balloon for > each marker, the clustering worked. It no longer does. My map is > athttp://www.esthermstrom.com/maps/maptest.html. > > (The points on that map are actually just a small sampling; the real > map will have several hundred points over the midwestern U.S. area, so > we definitely do need clustering, even if it doesn't look like it on > the sample.) > > Currently the code for creating the clusters is called in my > initialize function, right after setMarkers; I've also tried it inside > setMarkers (after the loop) but got the same (lack of) results. > > Can anyone point me in the right direction? It's been years since I've > done client-side code (I'm a php developer) and I'm having trouble > debugging this. I have firebug installed but it's not throwing any > errors; it's just not doing the clustering.
In IE I get: Line: 32 Error: 'mapPoints' is undefined and I see markers. The problem I see is that mapPoints is local to the setMarkers function, you either need to return it or make it global so it can be used in the call to create the markerclusterer. -- Larry -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
