The Maps and Earth APIs require an API key that is matched with your
hostname or IP address.  All you need to do is create a Maps API key
for your ubuntu machine using the URL in the error message.  Put that
key in the URL query string when you load the API.   Note that when
you register a hostname with the API, accessing the site by IP address
will give you the same error.

On Tue, Feb 17, 2009 at 7:46 PM, CarlosGE <[email protected]> wrote:
>
> Hi, i'am trying to integrate nagios with google earth web interface,
> and for that task i'am using one of your projects (gwt-earth) that
> uses google earth api.
>
> Since i'am working in a LAN, i tried to register the url http://localhost,
> but when i compile the web code, and acess the page i get "The Google
> Maps API key used on this web site was registered for a different web
> site. The developer of this web site can generate a new key at
> http://code.google.com/apis/maps.";
>
> I'am running a GWT code (gwt-earth) in ubuntu, more the nagios
> application in a vmware VM. Since the google earth plugin isn't
> currently available for linux, i use windows to access the virtual
> machine, and visualize the Google Earth in the browser.
>
> gwt-earth can be downloaded with -> svn checkout
> http://earth-api-samples.googlecode.com/svn/trunk/ earth-api-samples-
> read-only  (in directory demos)
>
> This is the html code  (in GwtEarth.html)
>
> <html>
>        <head>
>                <title>Google Earth API - GWT </title>
>                <link rel="stylesheet" href="GwtEarth.css" type="text/
> css">
>                <script language='javascript'
> src='com.google.GwtEarth.nocache.js'></
> script>
>                <script src="http://www.google.com/jsapi";></script>
>                <script>
>                  google.load("earth", "1");
>                </script>
>
>        </head>
>        <body>
>                <iframe src="javascript:''" id="__gwt_historyFrame"
> style="width:
> 0;height:0;border:0"></iframe>
>        </body>
> </html>
>
> I have search in many sites, but i can't resolve the problem. There
> must be an easy way to develope in this kind of environmnet, but i
> don't know how.
>
> Any help would be apreciated
> Best regards
>
> >
>



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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to