We had the same problem, even when using a VerticalPanel as the
container.

In our case, the solution was to do things in this specific order:

1. Add the VerticalPanel to the DOM hierarchy;

2. Via a DeferredCommand, add the MapWidget to the VerticalPanel.

In other words, the problem seems to occur when adding the MapWidget
to a container widget that has not been added to the document yet. Not
sure why the DeferredCommand is required though ...



On Oct 25, 1:23 pm, Clement <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've also faced a similar problem as yours when using it in a
> tabPanel.
> My solution is try not to put the map in that container. I use
> VerticalPanel instead.
>
> On Oct 24, 10:28 am, Jim Alateras <[EMAIL PROTECTED]> wrote:
>
> > Eric,
>
> > Tried using mapWidget.checkResize but unfortunately i still need to
> > resize the actual window to get to render completely.
>
> > On Oct 24, 1:02 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote:
>
> > > Stupid maps trick #183: try mapWidget.checkResize() after filling out your
> > > map.  Sometimes, changing the type of panel the map is contained in also
> > > makes a difference (I usually use a VerticalPanel)
>
> > > On Thu, Oct 23, 2008 at 9:33 PM, Jim Alateras <[EMAIL PROTECTED]> wrote:
>
> > > > I am only getting a part of the map widget rendering when I run my gwt
> > > > application. This happens both in hosted and non-hosted mode. I need
> > > > to resize the window before i get a complete map.
>
> > > > Here is my code
>
> > > >                mapWidget = new MapWidget(initialPoint, zoomLevel);
> > > >                mapWidget.setSize(width, height);
> > > >                initWidget(mapWidget);
> > > >                mapWidget.addControl(new SmallMapControl());
> > > >                mapWidget.addControl(new MapTypeControl());
>
> > > > I am using GWT 1.5.2 on a mac
>
> > > --
> > > 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