Hi Eric, i agree with you about the samples in HelloMaps, but the situation is quite different: in this case, removing the overlays (marker and markerClickHandler) does not depend on event but it's periodically scheduled in a timer. I've tried also with two vector: the first one is for the markers, the second one is for the markerClickHandler and then call the removeOverlay with this arguments. The problem in my opinion are: -) number of markers, beeing a tracking application, is not knows a priori -) the clearOverlays does not free memory with ie7 -) the issue is with the markerClickHandlerVector: in fact, commenting that, memory does not increase. As suggested some posts ago, I've recompiled the gwt-user commenting the opacity attribute in PopUpImplIe6... perhaps quite better, but however memory usage increases and increases.. any suggestions? thx, Michela
On 26 Feb, 13:34, Eric Ayers <zun...@google.com> wrote: > A Marker is a subclass of Overlay. I have an example in JavaScript > attached to this issue: > > http://code.google.com/p/gmaps-api-issues/issues/detail?id=945 > > There is a GWT binding for the GMap2.removeOverlay() method on the > MapWidget class. > > For future reference, many of the methods in the API have example code > in the HelloMaps example, including removing a marker using > removeOverlay(). > > > > On Thu, Feb 26, 2009 at 4:52 AM, koalina <koalin...@gmail.com> wrote: > > > Matas, I've tried recompiling commenting the line in PopUpImplIE6 you > > suggest but with no luck :-( > > I've seen that declaring a vector of labeledMarker and then adding : > > labeledMarkerVector.add(new LabeledMarker(point, options)); > > removing : > > map.clearOverlays(); > > > Iterator v = labeledMarkerVector.iterator > > (); > > while (v.hasNext()) { > > //250209Miki: rimuovo anche overlay > > singolarmente > > map.removeOverlay((LabeledMarker) > > v.next()); > > > } > > //250209Miki: e poi svuoto vettore di > > appoggio > > labeledMarkerVector.clear(); > > > is the same thing.... memory usage still increase. I notice that only > > with the vector, without any listener, memory doesn't increase... > > the leak seems to be here: > > ((LabeledMarker) labeledMarkerVector.lastElement()). > > addMarkerClickHandler(new MarkerClickHandler() { > > > public void onClick(MarkerClickEvent event) { > > //050209Miki: gestisco qui il popup informativo > > InfoWindow info = map.getInfoWindow(); > > info.open(event.getSender(), > > new InfoWindowContent( > > "<div style='width:150px;height:65px; font-size:12px' > > "+ > > "class='info-window'>"+ > > //"<p><img width='35px' src='"+GWT.getModuleBaseURL() > > +"'images/logonave.png' align='left'></p>" + > > etc .....</div>" > > )); > > > } > > > }); > > > is it a kwonwn issue? > > thx > > Michela > > > On 26 Feb, 10:36, koalina <koalin...@gmail.com> wrote: > >> Hi Matas, > >> I've found this line in PopUpImplIE6..i don't call this object but > >> perhaps it's called by InfoWindow in gwt google maps api... have i > >> only to recompile gwt-user.jar or all the gwt and google maps jars? > >> thx, have a nice day, > >> Michela > > >> On 25 Feb, 16:43, Matas <m.ramo...@gmail.com> wrote: > > >> > hi, Michela, > >> > I have similar problem (in different context) with gwt 1.5.3. and > >> > IE6/7memoryleaks. After some findings I found that leaking is caused > >> > by trasparency filter: > > >> > style.filter = 'alpha(opacity=0)'; > > >> > Try to remove transparency effects and then check formemoryleaks. > > >> > Please, take a look at the issue for > >> > details:http://code.google.com/p/google-web-toolkit/issues/detail?id=2329&q=p... > > >> > -- > >> > Matas > > -- > Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---