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 USA http://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 -~----------~----~----~----~------~----~------~--~---