On 10 February 2012 16:00, Ross Ewing <findstudentd...@googlemail.com> wrote: > Yeah so basically at the moment, i have a loop that reads from the > json file where the data is held. I'm looking to have a click event > when the user clicks a specific marker and for that to then show the > infowindow with the details of the marker.
You need a helper function to create your markers, like the createMarker() function in Larry's example* at http://www.geocodezip.com/v3_MW_example_map1.html If the data is kept together with a marker in a function, closure ensures it's kept together. Andrew *reworked from Mike Williams' V2 example -- 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.