> 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 this
http://code.google.com/apis/maps/documentation/javascript/events.html#EventClosures
More in this topic here. which is a v2 tutorial but the javascript
closure concept is the same
http://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.

Reply via email to