Hi all,

I am new to GWT and face some problem here. I need to show up Google map on 
a form in my GWT web.
First, there has a windowForm.class which extends FormPanel and I have 
wrote a mapWindowForm.class which extends this windowForm.class as below.
http://paste.ideaslabs.com/show/Q0ThysUrSF
And the problem is how shall I add this map  "final MapWidget map = new
 MapWidget(Location, 2);" which is a MapWidget into this FormPanel: 
"mapWindowForm.class"

This system was developed by GWT-2.5.0. The library I have imported is 
gwt-maps-1.1.1.jar(Maps v2 API 
1.1.1<https://code.google.com/p/gwt-google-apis/downloads/detail?name=gwt-maps-1.1.1.zip&can=2&q=>),
 
so I give "2" as the second parameter in Maps.loadMapsApi(). Unfortunately, 
the first time to call mapWindowForm.class, the window.alert showed up, 
indicated that the Map.loadMapsApi() has not successed. But the second time 
to call this class, the window.alert didn't show up until I have refresh 
the web page. When I tried to give "3", it shows the sensor shall be given 
as true of false. When I tried to use gwt-maps-3.8.1(Maps v3 API), the 
import were not work.

So, I am not sure that is the MapWidget doesn't create or the MapWidget 
doesn't add into the FormPanel succeed/

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to