Did you try the options in this FAQ?

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

On Mon, Mar 14, 2011 at 5:25 AM, Ahmed Shoeib
<[email protected]> wrote:
> hi all,
>
> i am trying to add MapWidget to 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);
> }
>
> public MapWidget addMapWidget(){
>
>
>                MapWidget map = new MapWidget();
>
>            //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 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