Go Back   SitePoint Forums > Forum Index > Program Your Site > JavaScript
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old Oct 21, 2009, 14:29   #1
arthur_negas
SitePoint Enthusiast
 
Join Date: Sep 2006
Posts: 25
Google Maps API

Hi,

I am developing a site which will require a single google maps display. Until the site is ready to launch, it won't be at its domain name address but under a development IP address at my hosting company. The code for the map is:

Code:
<script src="http://maps.google.com/maps?file=api&amp;v=2.x&amp;key=ABCDEFG&sensor=false" type="text/javascript">
</script>
<script type="text/javascript">
function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(54.179391, -0.283327), 15);
map.setUIToDefault();
}
}
</script>
Despite hours of effort, I cannot get past the following error message: The Google Maps API server rejected your request. This could be because the API key used on this site was registered for a different website.

The only two reasons I can think off for this are either that the development IP address is an issue as it is not a domain name or that I have already used my google account login for a different site but have tried setting up a different account with an alternative email address. That, or I am missing something very simple!

Any ideas would be most most welcome because I am pulling out what little of my hair that is left.

Many thanks in advance
arthur_negas is offline   Reply With Quote
 

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 02:46.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved