Thanks

I'll try to reuse the markers

but in the mean time
the mapPanel i'm referring to is here

http://www.gwt-ext.com/docs/2.0.4/com/gwtext/client/widgets/map/MapPanel.html

sorry if there's any misunderstanding

On Jul 21, 11:46 pm, Eric Ayers <[email protected]> wrote:
> Hi Again,
>
> I looked around and couldn't find 'removeAllMarkers' in either
> openlayers.Map or in Ext.ux.GMapPanel, so to figure out exactly how
> they implemented those with the Google Maps API, you'll have to look
> at the source where you got your distribution from.
>
> One thing you can look at is to make sure you are using a recent
> version of the maps API.  In the URL where you load the Maps API
> script, check the version.  If you are currently using "v=2"  try
> "v=2.x". More info about the version number:
>
>  http://code.google.com/apis/maps/documentation/index.html#API_Updates
>
> If you want to avoid memory leaks, one thing you can do is to not
> create and destroy markers, but instead re-use them.  You can just
> hide them or move them off the map when you aren't using one.  An
> example of re-using the markers in raw javascript is here under
> comment #15:
>
> http://code.google.com/p/gmaps-api-issues/issues/detail?id=945
>
> -Eric.
>
>
>
> On Tue, Jul 21, 2009 at 4:14 AM, Irwan Hendra<[email protected]> wrote:
>
> > I'm not sure if that answer my question
> > because i'm using mapPanel from GWT-EXT not map from GWT and
> > GMarkerManager
>
> > On Jul 21, 3:42 am, Eric Ayers <[email protected]> wrote:
> >> That sounds like it could be attributable to this Maps API bug:
>
> >>  http://code.google.com/p/gmaps-api-issues/issues/detail?id=295
>
> >> On Mon, Jul 20, 2009 at 3:11 AM, Irwan Hendra<[email protected]> wrote:
>
> >> > Hi
>
> >> > I'm new with GWT so please bear with me
> >> > I'm using GWT EXT and openlayer map, i'm using mapPanel to display map
> >> > and markers on it
>
> >> > following example from here:
> >> >http://abhijeetmaharana.com/blog/2008/04/07/gwt-ext-and-google-maps/
>
> >> > however, when i tried to remove the markers using
> >> > mapPanel.removeAllMarkers() all markers got removed fine, except it
> >> > doesn't purge the memory used, so in the end the browser (both ie and
> >> > firefox) used up 1gb memory and then crashed
>
> >> > I know this should be posted in GWT-EXT forum, but for some reason I
> >> > never received activation email from them, so I have no choice
>
> >> > please help thanks
>
> >> --
> >> Eric Z. Ayers - GWT Team - Atlanta, GA 
> >> USAhttp://code.google.com/webtoolkit/
>
> --
> 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 [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-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to