Rossko, your advice has been invaluable. I worked on it for a while, trying to understand the ins and outs, and I'm now letting marker manager do the work...and it's functioning as it should.
Still...the infowindow problem. I'm not sure where to declare and define the infowindow (locally now, not globally) because I'm not defining a marker now but letting marker manager do the work. I know you don't have tons of time to help novices like myself, but I think if I get this infowindow down correctly, I'll be on my way. I looked in the marker manager .js file and I didn't see any language that handles infowindows. Any thoughts on where to define infowindows? Should it be within the createMarker function or around where the addMarkers is occurring? I've tried it this way...http:// greenandtheblue.com/weather/markers_xml_12jul11.html...and it doesn't work. Here's my functioning page: http://greenandtheblue.com/weather/markers_xml_11jul11.html Again thanks for any help, Shad On Jul 11, 1:06 pm, Rossko <ros...@culzean.clara.co.uk> wrote: > > note that the initial load shows 100 markers but I tell it to show 60 > > at zoom level 6, > > As I said before, don't add your newly created markers to the map, let > MarkerManager do the managing for you. > > > Lastly, my infowindow is only showing the same infowindow when I click > > on any marker. > > You have defined 'infowindow' as a global variable. Every time you > run createMarker(), it reintialises the same 'infowindow' variable > with new content > infowindow = new google.maps.InfoWindow(... > When you've finished parsing XML and running createMarker() calls, the > content of the global variable 'infowindow' is left set to the last > version. > When any marker is clicked, the leftover global variable is used. > > The secret is not to use global variables for > thishttp://code.google.com/apis/maps/documentation/javascript/events.html... > More in this topic here. which is a v2 tutorial but the javascript > closure concept is the samehttp://econym.org.uk/gmap/basic1.htm -- 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-v3@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.