On Aug 20, 10:18 am, Bolo <[email protected]> wrote:
> I was using the google maps API on a website I use for testing a few
> weeks ago. And I was literally copying all the code on the gmaps
> tutorials, I didn't even use my API key since it's not in the code,
> and everything was working fine, except something with the reverse
> geocoding, which made me think it had something to do with the code
> not having a key. I generated a new key, put it into a different code
> and tried it out.
> It didn't work, nothing loads. I decided to change that code and copy
> it again from the "Hello World of google maps" tutorial, testing it
> with and without the API key. Without the API key it tells me I the
> site needs a new API key, with the API key the page loads, but it
> loads completely blank, no error code or anything else.
>
> You can take a look at both these test websites.
>
> www.microsubastas.net/mapagoogle.php<---- first test, the one without
> the API key that worked fine
>
> www.microsubastas.net/mapagoogle-2.php<----second test, with API key
> that loads blank
>
> Hope someone can help.


You are using v3 of the API.  A key is not required.
The page that has a key is loading v2 of the API, but your code is v3
code which is not compatible with the v2 API.

You need to either: load API v3 (the first page) or
rewrite your code for v2 (not recommended).

  -- Larry

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-maps-js-api-v3?hl=en.

Reply via email to