I think I pointed you at the wrong FAQ entry.

http://code.google.com/p/gwt-google-apis/wiki/MapsFAQ#Why_do_I_see_the_map_off_center_surrounded_with_grey_background

For best results, call the map.checkResizeAndCenter() function inside
of a DeferredCommand or Scheduler.scheduleDeferred() {} invocation.
If you are inside a tab panel, you'll need to call
checkResizeAndCenter() when the tab with the map in it is clicked.

On Tue, Mar 22, 2011 at 5:49 PM, Ahmed Shoeib
<[email protected]> wrote:
> i tried to remove adding scroll and form but nothing happen
> the problem still present.
>
>
> On Mar 22, 4:51 pm, Eric Ayers <[email protected]> wrote:
>> Is there something wrong with the widget hierarchy?  I'm not 100% sure
>> this is the problem, but it looks like you add 'main' to both the
>> FormPanel and the ScrollPanel.  That doesn't seem right to me.
>>
>> On Tue, Mar 22, 2011 at 10:18 AM, Ahmed Shoeib
>>
>>
>>
>> <[email protected]> wrote:
>> > i tried this but the problem not solved
>>
>> > pleas help me to solve this issue ???
>>
>> > On Mar 15, 4:30 pm, Eric Ayers <[email protected]> wrote:
>> >> Did you try the options in this FAQ?
>>
>> >>http://code.google.com/p/gwt-google-apis/wiki/MapsFAQ#Why_is_my_map_s...
>>
>> >> On Mon, Mar 14, 2011 at 5:25 AM, Ahmed Shoeib
>>
>> >> <[email protected]> wrote:
>> >> > hi all,
>>
>> >> > i am trying to addMapWidgetto VerticalPanel but the map added on the
>> >> > left corner
>>
>> >> > the image
>> >> >http://www.4shared.com/photo/zSoEo2LB/Screenshot.html
>>
>> >> > and i added marker and the marker should be centered on the image
>> >> > i can't see the marker when i load the map . i should navigate to this
>> >> > location to show map
>>
>> >> > the code for this
>> >> > ---------------------
>>
>> >> > private FormPanel form = new FormPanel();
>> >> > private VerticalPanel main = new VerticalPanel();
>>
>> >> > public Map(){
>>
>> >> > ScrollPanel container = new ScrollPanel();
>> >> >                initWidget(container);
>> >> >                container.setStyleName("FuoEgForm");
>> >> >                form.setWidget(main);
>> >> >                main.setSpacing(6);
>>
>> >> >                container.add(main);
>> >> > }
>>
>> >> > publicMapWidgetaddMapWidget(){
>>
>> >> >                MapWidgetmap = newMapWidget();
>>
>> >> >            //map.setSize("100%", "100%");
>> >> >            map.setStyleName("gwt-map");
>> >> >            map.removeMapType(MapType.getNormalMap());
>> >> >            map.removeMapType(MapType.getSatelliteMap());
>> >> >            map.addMapType(MapType.getPhysicalMap());
>> >> >            map.addMapType(MapType.getHybridMap());
>> >> >            map.setCurrentMapType(MapType.getHybridMap());
>>
>> >> >            //map.setSize("100%", "100%");
>> >> >            map.setWidth("500px");
>> >> >            map.setHeight("500px");
>> >> >            main.add(map);
>>
>> >> >        }
>>
>> >> > how can i solve this issue . the map should fill the gray
>> >> > boundary .... ???
>>
>> >> > thanks for help .
>>
>> >> > regards,
>> >> > ahmed shoeib
>> >> > GWT developer
>>
>> >> > --
>> >> > 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 
>> >> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>>
>> >> --
>> >> Eric Z. Ayers
>> >> Google Web Toolkit, Atlanta, GA USA
>>
>> > --
>> > 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 
>> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>>
>> --
>> Eric Z. Ayers
>> Google Web Toolkit, Atlanta, GA USA
>
> --
> 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.
>
>



-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

-- 
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