Re: map, add marker and remove marker
the mapPanel i'm referring to is here http://www.gwt-ext.com/docs/2.0.4/com/gwtext/client/widgets/map/MapPa... I have also used the MapPanel in GWT-EXT, apparently it does not support plotting Polylines on OpenLayersMap. Have you had any luck with this using GWT-OpenLayers MapWidget to plot Polylines and MapOverlays? ... they don't exactly have a javadocs documentation like GWT-EXT. I currently have an open thread at GWT-EXT forum http://groups.google.com/group/gwt-ext/browse_thread/thread/7cb01539b0b680f0?hl=en Thanks, --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: map, add marker and remove marker
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 zun...@google.com 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 Hendraoverta...@gmail.com 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/ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: map, add marker and remove marker
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 Hendraoverta...@gmail.com 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 zun...@google.com 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 Hendraoverta...@gmail.com 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 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 -~--~~~~--~~--~--~---
Re: map, add marker and remove marker
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 zun...@google.com 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 Hendraoverta...@gmail.com 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 zun...@google.com 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 Hendraoverta...@gmail.com 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 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 -~--~~~~--~~--~--~---
map, add marker and remove marker
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 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: map, add marker and remove marker
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 Hendraoverta...@gmail.com 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 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 -~--~~~~--~~--~--~---