Re: New layouts not playing nicely with Maps

2009-12-31 Thread Jeff Schnitzer
Sorry about forgetting this thread... but I solved the problem for Maps v3 in a slightly different way. BTW, I created a (very crude at the moment) project for a Maps v3 GWT wrapper here: http://code.google.com/p/gwt-maps3/ My solution was to forceLayout() recursively on all the parent panels li

Re: New layouts not playing nicely with Maps

2009-12-31 Thread Dave
I solved the problem by using info gained from this site http://googlegeodevelopers.blogspot.com/2009/01/google-maps-api-library-for-gwt.html. This is a great help. On this page, to the left of the Google Maplet: Click on "Source Code". Then click on the "Full Source" hyperlink. Then Click on "CLA

Re: New layouts not playing nicely with Maps

2009-12-30 Thread Dave
Eric, I have the same problem as stated in 1st post above. I have read other post and this problem seem to be persisted for sometime now as shown is this earlier post http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/657ed9bb2e2e9011/794322db35f85adc?lnk=gst&q=Guillem#794322db3

Re: New layouts not playing nicely with Maps

2009-12-29 Thread jd
I had this problem a few months ago http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/c0dc9b54edd48531 and solved it with a callback which is more reliable than a timer because it cancels any existing animation which might run past your timeout.

Re: New layouts not playing nicely with Maps

2009-12-22 Thread Stuart
I am using UI binding to setup my app, so I needed a little extra tweak to Eric's code. If I placed the timer either before or after the createAndBindUi call in my widget containing the map, I was still experiencing the map UI rash Jeff and Andrew had. However, since my app also uses event handli

Re: New layouts not playing nicely with Maps

2009-12-21 Thread Andrew Winter
Thanks, Eric. The timer thing does exactly what I wanted. Andrew. On Dec 21, 12:54 pm, Eric Ayers wrote: > On Mon, Dec 21, 2009 at 6:19 AM, Andrew Winter > wrote: > > Hi, > > > I have the exact same problem as Jeff. One difference between Jeff's > > case and Eric's case is that in Jeff's case,

Re: New layouts not playing nicely with Maps

2009-12-21 Thread Eric Ayers
On Mon, Dec 21, 2009 at 6:19 AM, Andrew Winter wrote: > Hi, > > I have the exact same problem as Jeff. One difference between Jeff's > case and Eric's case is that in Jeff's case, the dimensions of the map > are not known; in Eric's case the map is 400px by 500px. It seems this > problem occurs wh

Re: New layouts not playing nicely with Maps

2009-12-21 Thread Andrew Winter
Hi, I have the exact same problem as Jeff. One difference between Jeff's case and Eric's case is that in Jeff's case, the dimensions of the map are not known; in Eric's case the map is 400px by 500px. It seems this problem occurs when the dimensions of the map are not known at build- time. I want

Re: New layouts not playing nicely with Maps

2009-12-17 Thread Eric Ayers
Hi Jeff, I played around with this and got it to work with these panels: private MapWidget map; // GWT module entry point method. public void onModuleLoad() { Maps.loadMapsApi(null, null, false, new Runnable() { public void run() { LatLng cawkerCity = LatLng.newInstance(39.509, -98.434); // O

New layouts not playing nicely with Maps

2009-12-14 Thread Jeff Schnitzer
Does anyone have the GWT Google maps working inside the new Layout panels? My page is basically a DockLayoutPanel whose main element is a SplitLayoutPanel whose main element is a MapWidget. The MapWidget is set to 100% size. On startup, the map tiles are sized to a very small part of the area, a