[Google Maps API v3] Google map works locally but not on the website

157 views
Skip to first unread message

Deadhead_DMT

unread,
May 24, 2010, 5:34:21 PM5/24/10
to Google Maps JavaScript API v3
Hi all... thanks in advance for any help....

I am working on a website ( http://www.lynbrooktherapist.com ) and I
am embedding a google map control for map to the therapist office and
also for generating directions to/from....

I have an API key... and when I run the page on my local computer, it
works fine and downloads the appropriate google map of the
location.... BUT...

when I try to view it on the website I get an error message
"Initialization failed: please check the API key, swf location,
version and network availabilty."...

If anyone has a simple solution that would be great...

but also (associated problem)... in trying to troubleshoot the
problem.... I came back to google site to see if my API key info was
entered correctly... but I cannot find a single link that shows me my
API key and the information bound by it... anyone know how to access
my API key information as well... please advise....

--
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 google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.

geoco...@gmail.com

unread,
May 24, 2010, 7:03:39 PM5/24/10
to Google Maps JavaScript API v3
On May 24, 2:34 pm, Deadhead_DMT <Deadhead_...@hotmail.com> wrote:
> Hi all... thanks in advance for any help....
>
> I am working on a website (http://www.lynbrooktherapist.com) and I
> am embedding a google map control for map to the therapist office and
> also for generating directions to/from....
>
> I have an API key... and when I run the page on my local computer, it
> works fine and downloads the appropriate google map of the
> location.... BUT...
>
> when I try to view it on the website I get an error message
> "Initialization failed: please check the API key, swf location,
> version and network availabilty."...

Sounds like it might be the flash API. This group is for v3 of the
javascript api which doesn't require keys, and doesn't use swf files.
The flash group is:
http://groups.google.com/group/google-maps-api-for-flash/

-- Larry

pete

unread,
May 24, 2010, 8:50:42 PM5/24/10
to Google Maps JavaScript API v3
Ensure the API key you are using on http://www.lynbrooktherapist.com
is created for that domain.

Any other staging or network environments you have need their own API
Key.

Note
For Flash applications, I always recommend passing the API key to the
SWF through a JavaScript variable, through an object param.
This would not require you to re-compile your SWF every time you move
your file to a new server, as you'd only need to update the JavaScript
variable.


On May 25, 9:03 am, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages