Skip to content
Example of offline use of WebGL Earth 2 with tiles rendered by MapTiler
HTML JavaScript
Branch: gh-pages
Clone or download

WebGL Earth offline demo

The WebGL Earth API with custom tiles derived from Natural Earth data.

Tiles rendered by MapTiler ( For preparing custom map tiles see this step-by-step tutorial:

Download and unzip this repository (or clone it with git):

This example runs offline as well, but the data must be opened over HTTP protocol.

Direct opening of the HTML file in a downloaded directory is unfortunatelly not possible because of the default security restrictions of the web browser for loading WebGL textures.

Once the globe is hosted on your webserver it runs perfectly.

To develop and work with this example locally on your computer:

A) either turn off temporarily the security restrictions of your web browser. See:

B) or start in the directory with the code a simple web server with the command:

$ python -m SimpleHTTPServer

then you can (even without connection to Internet) open the globe at:


and you should see this:

WebGL Earth Offline

You can’t perform that action at this time.