On Aug 30, 2:11 pm, Muj <[email protected]> wrote: > All my multiple marker is showing the last business name. I am trying > to have dynamic information with each marker. What am I doing wrong?
Please, please don't post code dumps. Post a link to your map that shows the problem instead. It sounds like you are running into pitfall #3 on this page of Mike Williams' v2 tutorial: http://econym.org.uk/gmap/basic1.htm contentString is a global variable and is left set to the last value. One way to fix it would be with function closure (a createMarker function) like this: http://www.geocodezip.com/v3_MW_example_map1.html -- 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.
