Skip to content

Instantly share code, notes, and snippets.

@Seandebasti
Created November 20, 2014 21:18
Show Gist options
  • Save Seandebasti/f47e71734a04f4cf21d6 to your computer and use it in GitHub Desktop.
Save Seandebasti/f47e71734a04f4cf21d6 to your computer and use it in GitHub Desktop.
WebGL Earth API: Satellite // source http://jsbin.com/wugiv
<!DOCTYPE HTML>
<html>
<head>
<script src="http://www.webglearth.com/v2/api.js"></script>
<script>
function initialize() {
var options = {atmosphere: true, center: [0, 0], zoom: 0};
var earth = new WE.map('earth_div', options);
WE.tileLayer('https://a.tiles.mapbox.com/v3/duncangraham.552f58b0/{z}/{x}/{y}.png', {
subdomains: '1234'
}).addTo(earth);
}
</script>
<style>
html, body{padding: 0; margin: 0;}
#earth_div{top: 0; right: 0; bottom: 0; left: 0;
background-color: #000; position: absolute !important;}
</style>
<title>WebGL Earth API: Satellite</title>
</head>
<body onload="initialize()">
<div id="earth_div"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment