chiranthsiddappa / earth-api-samples

Automatically exported from code.google.com/p/earth-api-samples
0 stars 0 forks source link

GE Plugin starts from local file, but not from my local webserver #962

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
: I copied the GEPlugin "Hello Earth" page to my local network.  When I launch 
the file from my harddrive -- the GEPlugin starts OK.   When I put the HTML 
page on my local Apache server and try to launch it via HTTP -- it does NOT 
start.   

Please note: I am not on the internet, I am running on a private network with 
its own Google Earth globe server.

Which plugin version are you using?
: Doing a getPluginVersion() reports version "5.2.1.1588"

Which browsers and operating systems are affected?
Windows 7, Internet Explorer 9.0.8112

Please provide any additional information (code snippets/links) below.
: 
c:\Temp\GePlugin_Example.html <--- launch from here, works OK
http://myserver/GePlugin_Example.html <--- launch from here, GE does NOT init.  
Throws an error in the "eval" code at "if(c.pluginDiv.logStore)" -- 
c.pluginDiv.logStore never got initialized and is null.

Original issue reported on code.google.com by ksandber...@hotmail.com on 20 Aug 2013 at 7:51

GoogleCodeExporter commented 8 years ago
RESOLVED:

For some reason, when the web page was launched from the Apache server, the 
"window.google.loader" object was not being created.   I added the following 
code to my init() function, and it works now:

function init()
  if (! ('loader' in window.google))
    { 
      window.google.loader={};
      window.google.loader.KeyVerified=true;
      window.google.loader.ApiKey="abcdefghijklmnopqrstuvwxyz";
      window.google.loader.LoadFailure=false;
    }
   google.earth.createInstance("map3d",initCB, failureCB {databae: xxx}  );
  }

This issue can be CLOSED.

Original comment by ksandber...@hotmail.com on 21 Aug 2013 at 4:45