
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
github.com/webglearth/webglearth2
Advanced tools
Open-source virtual planet web application running in any web browser with support for WebGL HTML5 standard. Mobile devices such as iPhone, iPad or Android based mobile phones are going to be supported too. It is a free software and a community driven project.
There is an extremely easy to use JavaScript API - fully mimicking LeafletJS.
See: http://examples.webglearth.org/ for demos.
Contact: info@klokantech.com
WebGL Earth in version 2.0 is adapting the popular LeafletJS API. So if you are familiar with Leaflet you can easily start to use WebGL Earth, things like markers, popups, centering and flying to a place on given latitude and longitude are possible. The code from Leaflet can be also mixed with WE - you can pass L.LatLng and L.LatLngBounds, etc.
A simple Hello World:
<!DOCTYPE HTML>
<html>
<head>
<script src="http://www.webglearth.com/v2/api.js"></script>
<script>
function initialize() {
var earth = new WE.map('earth_div');
WE.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(earth);
}
</script>
</head>
<body onload="initialize()">
<div id="earth_div" style="width:600px;height:400px;"></div>
</body>
</html>
More examples are at: http://examples.webglearth.org/.
Original version of WebGL Earth had also it's own easy API which is preserved for back compatibility. It is documented at http://www.webglearth.org/api.
The supported Leaflet API methods are not yet documented -- the best source of the information are currently the API examples (src/api-l.html, src/api.html, src/polygon.html) and the API symbol exports itselves (src/api.js and src/api-l.js).
The project API is available from Google CDN and can be linked and called directly from your web application as http://www.webglearth.com/v2/api.js. Examples mentioned above are demonstrating this form of use.
Embedding of a globe in your own web is then extremely easy.
Because the project is 100% open-source, the complete code can be hosted also on your own website or distributed with applications. Ready to use API releases are at: https://github.com/webglearth/webglearth2/releases
With custom rendered map tiles (made with http://www.maptiler.com/) the project can be used on intranets, in restricted environments or even offline. The API should be accessed via HTTP protocol (possibly via localhost).
make cesium to build the required component.make serve to start the plovr server (port 9810)src/*.htmlmake build to produce deploy/*_nocesium.js/**
* WebGL Earth 2.0
* ===============
* Copyright (C) 2014 - Klokan Technologies GmbH
* http://www.webglearth.org/
* Powered by Cesium (http://www.webglearth.org/cesium). Apache 2.0 license.
*/
CESIUM_BASE_URL = '.';
{content of cesium/Build/Cesium/Cesium.js}
{content of deploy/api_nocesium.js}
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.