Hi, sorry bout posting the code. This is the url to my page. http://www.vincentlilive.com/Realtimemap.html
I try use the setLatLng() to reposition the marker instead of clear marker and re-add. But it seems like the memory usage still goes up for each interval tick. It goes up by around 40-50kb per second. Issit something to do with the openInfoWindowHTML because if the marker doesnt show the pop up, the memory usage remain constant? On Tue, May 4, 2010 at 4:32 PM, [email protected] <[email protected]>wrote: > On May 3, 11:22 pm, Vincent <[email protected]> wrote: > > Hi All, > > > > I have a program which show the coordinates of vehicle at an interval > > of 1seconds. The vehicle is display as a marker in the map. When > > clicked, a pop up occurred, it will show the properties of the > > vehicle. When the next interval tick, the existing marker on the map > > will be remove and re-add to the map with different position. The pop- > > up will be remained open for the next interval until the pop up is > > manually closed. > > > > The problem i'm having now is when the marker is clicked and pop-up, > > the memory usage keep increasing for every seconds. > > > > When i measure the memory usage and memory leak with sIEve, there's no > > memory leak, but the memory usage keep increasing as well as the inUse > > (DOM object created). > > > > Anyone know how to release the DOM of the openInfoWindowHtml ? i try > > to use the marker.closeInfoWindow() and use the GEvent.removeListener > > to deregister the marker click event listener, and assign related > > object to null but it seems not working. > > > > Here is my code. > > > > Here are the posting guidelines... > > http://groups.google.com/group/google-maps-api/web/suggested-posting-guidelines > > http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical > > Have you tried moving the existing marker rather than removing and > adding a new one? > > > http://code.google.com/apis/maps/documentation/reference.html#GMarker.setLatLng > > -- Larry > > -- > 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]<google-maps-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-api?hl=en. > > -- 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.
