On Jun 16, 3:17 pm, Chandra Miller <[email protected]> wrote:
> When I create a map and get a API code for my website everything
> works
> great until I try to add the Earth extenstion.  When I add earth to
> the options (along with Map, Satellite and Terrain) a screen shows up
> that says "google maps api key used on this web site was registered
> for a different website".  I have already generated a key for this
> website and all the other extensions work so I dont understand why
> google earth will not show up.  Any suggestion would be greatly
> appreciated.
> Here is the websitehttp://156.42.96.39/alert/Google/FCDMCmap.html

The Earth plugin isn't getting your Maps key.

The most reliable way of getting it to work is to use the AJAX loader.

<script type="text/javascript"
  src="http://www.google.com/jsapi?key=your_key";></script>
<script type="text/javascript">
  google.load("maps", "2", {other_params:"sensor=true"});
  google.load("earth","1");
</script>

You should also do something about testing for the existance of "map"
in your onFocus handler function. When the page *first* gets focus in
Firefox, it's before any script has run and "map" isn't defined.

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

Reply via email to