Thnaks 4 the info !! How can we sort it out
:( On Feb 10, 5:12 pm, marcelo <[email protected]> wrote: > On Feb 10, 11:59 am, jey jey <[email protected]> wrote: > > > Could you please try > > > javascript:GEvent.trigger(gmarkers[0],'click') ; > > javascript:GEvent.trigger(gmarkers[10],'click') ; > > > same infobox window opening while we use the above commands :( > > It's because you are overwriting the first value in the gmarkers > array. > > First you do > gmarkers.push(marker); > > and later, > gmarkers[i] = marker; > > where i is a global variable set to 0. > > So, every time you call createMarker() the value of gmarkers[0] gets > overwritten. > > -- > Marcelo -http://maps.forum.nu > -- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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-API?hl=en -~----------~----~----~----~------~----~------~--~---
