Hello all,
I have a map with about 30 markers on it that are representing GPS
transponders. The markers are stored in an array, and I have an ajax script
that polls the server to get new data and I update the marker positions via
the array and all is well. The issue comes with the infoWindows.
I am using some jquery tabs on the windows, and the easiest way was to draw
the content of each window in the source and them pass the dom object to the
setContent function with jquery when i attach the listener shown here :
google.maps.event.addListener(transponders[i].marker, 'click', function () {
this.infoWindow.setContent(transponders[i].infoWindowDiv);
this.infoWindow.open(map, transponders[i].marker);
});
Note: I'm storing the dom objects in the array as well for testing. Also,
I'm using a single shared infoWindow stored in this.infoWindow
I update the div in the source, or in the array, and it doesn't update the
infowindow - in-fact it seems the listener is taking the dom object and
putting it somewhere, because it's not accessible after the window is first
opened. I have read in some other posts that you have to detach the listener
and create a new one.. I'm concerned that these dom objects are sitting
somewhere.. and after a week of running, this things is going to be chewing
up a lot of RAM.
Is there a way of accessing the DOM object that the listener seems to have
taken from me so I can redraw it?
Cheers,
ALEC
--
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.