Some folks have started a library for Google Maps v3. You can browse some
sample cod here:

http://code.google.com/p/gwt-google-maps-v3/source/browse/#hg/src/com/google/gwt/maps/client

>From what you describe, it looks like your app is not loading the maps API
before calling this code.

http://code.google.com/apis/maps/documentation/v3/introduction.html

You probably need to add or fix the <script> tag in your host page that
loads the Maps API from Google's servers.
<http://code.google.com/p/gwt-google-maps-v3/source/browse/#hg/src/com/google/gwt/maps/client>

On Tue, Mar 9, 2010 at 10:41 AM, Joe <[email protected]>wrote:

> Hello everybody!
> I try to usethe Google Maps API V3 with the GWT, but it doesn't work.
> In a class I have the following method:
>
> public static native JavaScriptObject getMap()/*-{
>
>        ar latlng = new google.maps.LatLng(50.940872, 6.937888);
>        var myOptions = {
>                zoom: 15,
>                center: latlng,
>                mapTypeId: google.maps.MapTypeId.ROADMAP
>        };
>        var map = new google.maps.Map(div, myOptions);
> }-*/;
>
> But I always get the error that "google" isn't known. I new that I ave
> to include the script-tag. I tried to put it in the xml-File or the
> html-File of my GWT2.0 project, but it doesn't work, Does anyone know
> who to setup my project to use the Google Maps API V3 with JSNI???
> I hope someone could help me...
> Thank's a lot
> Regards, Joe
>
> --
> 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]<google-web-toolkit%[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
Sign up now for Google I/O 2010: May 19-20, http://code.google.com/io

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