Web GL Globe does not work locally

I am trying to run Globe Web GLAP ( http://code.google.com/p/webgl-globe ). I downloaded the source code from the Google Code page and unzipped all the files into one folder. The May 13 issue is the latest in writing. However, the index.html page loads without a globe in Chrome and other browsers. I quickly looked through the code, but I'm new to javascript, etc. It looks like some file links are wrong, as if I am correcting the line:

background: #000000 url(/globe/loading.gif) center center no-repeat; 

to

  background: #000000 url(../globe/loading.gif) center center no-repeat; 

I get loading boot wheel, but spinning forever.

Further in the code appears moving globe.animate(); to another line that creates a working globe, but without the function of loading data. I tried the following to display the globe:

  globe.createPoints(); settime(globe,0)(); } } };globe.animate(); 

Basically, I would like the workload (zip?) Of the WebGL web globe or someone to look at the download at http://code.google.com/p/webgl-globe/downloads/list and give me Know how to create a working version from a broken code on a site.

Thanks in advance,

Charlotte

+4
source share
2 answers

Do you accept this by simply running it from the file system? If you are, then why are the images not loading. "/" Will refer to your root directory. If you are using something with python, you can run the following from the project directory

 python -m SimpleHTTPServer 8000 

Then go to http://0.0.0.0:8000/ and it should work.

showing it working

+5
source

If you just click on index.html, this will not work because js files will not be loaded

 <script type="text/javascript" src="/globe/globe.js"></script> 

Of course, if you use MAMP (WAMP) as an example and change the document root to / Users / You / Downloads / webgl -globe-master

You just need to go there to download js files without editing the html code:

 http://localhost:8888/globe/ 
0
source

All Articles