Hi! Yes, it seems like I use the same infoWindow object for all markers as you describe.
The script in the link is unnecessary complicated. Some part are OK, but I'm just seeking for an alternative with all the markers position in a list and an example of how to create a list of infoWindos that will contain som HTML code to view text and a image. I would also like to make a list for the titles of the markers as well. I have done all this before in v2 och google maps. This list of markers and infoWindow will later be created and loaded from a file in PHP, that's no problem. I also have some problem with signs in the titles. I get strange symbol when using ÅÄÖ. I use UTF-8 in the header, the titles are loaded from a database. I have changed the titles i the database to Ö for special signs, then it works, but should that be necessary? Preciate if I can get tips of some other code examples. Thanks! :) On 15 Juni, 02:45, Flambino <[email protected]> wrote: > > The problem is that the image from previous infowindow appears a short > > moment before the new apperas! > > Sounds like you're re-using/re-displaying the same infoWindow-object > for all the markers, and just swapping out the content each time (then > you'd get that split second of old content before the new one is > shown). Instead, try making on infoWindow for each marker. > > Here's an example (from the gmaps documentation) with several markers > and several > infoWindows:http://code.google.com/apis/maps/documentation/javascript/examples/ev... > Not the simplest example there is (read up on "closures" in > javascript), but maybe it'll help. -- 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.
