On Dec 7, 7:49 am, Brent West <[email protected]> wrote: > Hi, > I have a function that loops through the address column from a > gridview, geocodes each address, then places a marker on the map. When > I hover over each marker, the tooltip is the same for each marker and > keeps showing the the name of the last address in the gridview. I think > it may be a problem with closure in the for loop, but I have not been > able to figure this out. Any help would be greatly appreciated. Here is > the javascript:
Please provide a link to your map that exhibits the problem as requested in the posting guidelines http://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/2b3f101fd509919e It does sound an aweful lot like pitfall #3 on Mike Williams' v2 tutorial: The Basics - Part 1 Markers with info windows http://econym.org.uk/gmap/basic1.htm He explains function closure here: Javascript Concepts - Part 3 Function Closure http://econym.org.uk/gmap/closure.htm -- Larry > -- 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 [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-js-api-v3?hl=en.
