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].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to