GWT Google Maps -> bad refreshing of the map

12 views
Skip to first unread message

LFCPD

unread,
Apr 24, 2008, 10:31:30 AM4/24/08
to Google Web Toolkit
Hi all,

I'm using the Google Maps in my application, but I have a little
problem: The map isn't show correctly, it's like it isn't refreshed...
If I make a zoom or I move the map, some parts of the map aren't
shown. Anyone knows the reason? When I execute the application in
hosted mode I get the following error: 'The Google Maps API key is not
valid...', but I've created at least four different keys, and I always
got the same error, however I can see the map... The bad refreshing of
the map can be cause of the error of the key? How can I get a valid
key?

Help me please!

Thanks in advance!

Miguel Méndez

unread,
Apr 24, 2008, 11:17:55 AM4/24/08
to Google-We...@googlegroups.com, Eric Ayers
What Google Maps are you using?  What version of GWT are you using?
--
Miguel

Eric Ayers

unread,
Apr 24, 2008, 11:36:01 AM4/24/08
to Miguel Méndez, Google-We...@googlegroups.com
Did you get your maps keys from http://code.google.com/apis/maps/ ?

I was wondering if the maps.google.com shows errors for you. I have
seen problems with missing tiles when I have a poor connection, but
not a bad maps key error.

-Eric.

--
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

Don't miss Google's biggest developer event of the year
http://code.google.com/events/io

LFCPD

unread,
Apr 25, 2008, 3:14:39 AM4/25/08
to Google Web Toolkit

Hi,

The Google Maps I'm using are the ones in the gwt-google-apis lib, the
version of GWT I'm using is the 1.4.61 and I got the key from
http://code.google.com/apis/maps/.

I got the error of the key of the Google Maps in eclipse (I'm using
Instantiations, when I try to open the widget that contains the map
in 'design view' I get the error).

I've also set the memory used by Tomcat to 256MB, but it still doesn't
work. Any idea?

Thanks you?

Miguel Méndez

unread,
Apr 25, 2008, 8:22:27 AM4/25/08
to Google-We...@googlegroups.com, Eric Ayers
Eric might have more information, but the Maps API key is based on the URL of the application.  So, you will need one for hosted mode and one for your final deployment.

If you are running GWT 1.4.61, are you running the Maps milestone build r41?
--
Miguel

Eric Ayers

unread,
Apr 25, 2008, 8:58:33 AM4/25/08
to Miguel Méndez, Google-We...@googlegroups.com
I believe that the key is irrelevant for queries to localhost or
127.0.0.1. From my testing, the supplied keys in the samples suffice
for hosted mode.

If you read the maps API docs at http://code.google.com/apis/maps/,
you'll discover that you need one for several different cases of what
might be the same webserver. I've found by experimentation that I
need separate keys for a query of a URL by name and IP address to the
same server.

-Eric.

--

cure

unread,
Apr 26, 2008, 2:38:53 PM4/26/08
to Google Web Toolkit
Your problem my be related to the fact that Instatinations designer is
*running* in ports other than 8888 (default port for hosted mode) - so
your google maps api key will not actually work and hence erratic
behaivor of google maps. I have experienced this as well. As soon as
you "compile" your application and run it from a browser problem
should go away.

On Apr 25, 9:14 am, LFCPD <laieta.hip.hop...@gmail.com> wrote:
> Hi,
>
> The Google Maps I'm using are the ones in the gwt-google-apis lib, the
> version of GWT I'm using is the 1.4.61 and I got the key fromhttp://code.google.com/apis/maps/.

LFCPD

unread,
Apr 28, 2008, 2:51:53 AM4/28/08
to Google Web Toolkit
Hi,

Thank you all for your information.

Miguel, I'm running the Maps milestone build r41, but I've heard about
another version (r290). Which one is the last one? Or which one is the
most stable?

Thank you very much again!

Miguel Méndez

unread,
Apr 28, 2008, 9:10:38 AM4/28/08
to Google-We...@googlegroups.com
r290 is the latest milestone -- it is more stable.
--
Miguel

LFCPD

unread,
Apr 28, 2008, 10:42:13 AM4/28/08
to Google Web Toolkit
Where can I download it? Because I've found this site
http://code.google.com/p/gwt-google-apis/downloads/list?can=4&q=milestone%3Ar290
but all files are 'deprecated'.

Thanks.

Miguel Méndez

unread,
Apr 28, 2008, 11:36:51 AM4/28/08
to Google-We...@googlegroups.com
We tag our milestone builds as deprecated to purposely keep them off of the main downloads page.  The reasoning behind that is to prevent people from stumbling on them by accident.  If you are going to download a deprecated gwt-*-rXXX build them presumably you know that it is a milestone and not an official release.

--
Miguel
Reply all
Reply to author
Forward
0 new messages