Skip to content

Instantly share code, notes, and snippets.

Last active October 26, 2018 17:28
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
WebGL Earth demo: watercolor
license: mit
<!DOCTYPE html>
<meta charset="utf-8">
<script src=""></script>
<script src=""></script>
function initialize() {
var options = { zoom: 1.5, position: [47.19537,8.524404] };
var earth = new'earth_div', options);
var options = { bounds: [[-84, -179],[84, 179]],
minZoom: 2,
maxZoom: 18 };
var watercolor = WE.tileLayer('{z}/{x}/{y}.jpg', options);
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0;font-family:sans-serif }
<body onload="initialize()">
<div id="earth_div" style="width:100%;height:100%;border:0px solid gray; padding:2px;"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment