Thanks! I used this piece of code and it's working exactly how i wanted.
Only one marker is shown at a time. On Feb 19, 7:23 am, xelawho <[email protected]> wrote: > ... although now that I look at your code I notice that you already > have your markers stored in an array, so all you have to do is put > this: > > for (var g = 0; g < gmarkers.length; g++) { > gmarkers[g].hide(); > } > marker.show(); > > after the line that says: > > GEvent.addListener(marker, "click", function() { > > I guess if you only have 5 markers, looping through them is not such a > big deal. I have 80 and it seems to happen fairly quickly. > > I do like your idea, though, Martin... I might have a play around with > it. -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
