> On Aug 1, 7:25 am, dbrb2 <
benjamin.bar...@gmail.com> wrote:
>
>
>
>
>
> > Ok - I've sorted that problem. I was doing getElementByID, but unless
> > that ID was open, there was no ID to get - so the javascript was
> > throwing an error. For the moment I've stuck the getelementbyid into a
> > try/catch statement, so that the getelementbyid updates the window if
> > it is open, otherwise the event listner is changed as before.
>
> > Query though:
>
> > I have been changing the event listner by calling:
>
> > google.maps.event.addListener(markerArray[id], 'click', function()
> > { ....}
>
> > This would seem to mean that after a few itterations, every marker
> > will have many click listners. Is this the case, and if so, any
> > thoughts as to how I can replace the listner rather than add another?
>