You must call if(infoWindow) infoWindow.close() first Sent from my iPhone
On Jun 8, 2010, at 2:47 PM, Rossko <[email protected]> wrote: >> The markers appear as they should but no matter which marker I click >> on it renders over the last marker in my list and shows that markers >> content (not the one I clicked on). > > When the loop creating the markers has finished, 'contentString' is > set to the contents of the last marker. > Whichever marker you click, the same 'contentString' is used for the > infowindow. > > One way round this is to use 'function closure', example discussion > http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/30b3f94096ae3e6b/be337ad66dd2c19e > > -- > 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. > -- 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.
