views:

476

answers:

2

In my project.gwt.xml file I have

<script src="http://maps.google.com/maps?gwt=1&amp;amp;file=api&amp;amp;v=2&amp;amp;sensor=false;key=MYKEY" />

But, when I load my page I get the google map gadget to come up, but with no map and an error message "Your page is missing the Google Maps API." Is there a different place I need to load the API?

A: 

I would suggest that you use the Google Maps Library for GWT. You'll have a much easier time than if you try to get the standard Google Maps API working in your GWT project.

Templar
I am, but Google's documentation is tarrible, out of date, and lacking meny details. That is the reason I am asking SO for a better discription.
Eric Koslow
+1  A: 

Looks like I got it to work myself. I added to my project.html file:

<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=MYKEY" type="text/javascript"></script>

And it started working. Probally not the best way of solving the problem, but it worked!

Eric Koslow