It looks like you're using the same variable name (var infowindow) to create all of your Infowindow objects within the same scope. You're overwriting its value each time you create a new infowindow, which is why you're always left with the information from the last assignment.
You can use multiple infowindow objects, or you can call infowindow.setContent() to update the infowindow's content, before displaying it with infowindow.open(). On Nov 21, 9:46 am, Ron Pineo <[email protected]> wrote: > Hi All: > > I pretty much have my first google map working fine. Only problem is > I want to have an infowindow appear when the marker is clicked on. I > have it doing this but it displays the same content for each > infowindow despite me passing it different content for each > infowindow. > > Read everything I could find but no luck so if someone could shed a > little light on what I am doing wrong it would be greatly appreciated. > > Here is the link: > > http://www.corrosionfree.com/dealerresults.asp?dealercity=Brampton&Su... > > Thanks in advance, > > Ron Pineo -- 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=.
