UNPKG

earthjs

Version:

D3 Earth JS using SVG, Canvas & THREE js, build with some plugins.

28 lines (27 loc) 1.08 kB
<!DOCTYPE html> <html> <head> <link type="text/css" rel="stylesheet" href="../css/earthjs.css"> <script type='text/javascript' src="../js/d3.min.js"></script> <script type='text/javascript' src='../js/three.min.js'></script> <script type='text/javascript' src="../js/topojson.min.js"></script> <script type='text/javascript' src='../js/earthjs.js'></script> <style>body {background: #555;}</style> </head> <body> <svg id="earth-js" class="ej-center"></svg> <canvas id="three-js" class="ej-center"></canvas> <script type='text/javascript' src='./flightline.js'></script> <script> g.register(earthjs.plugins.globeThreejs('../globe/world_texture_1.jpg')) .register(earthjs.plugins.worldThreejs('../d/world-110m.json')) .register(earthjs.plugins.flightLineThreejs('../data/flights2.json','../globe/point.png')) g.flightLineThreejs.ready = function(err, csv) { g.flightLineThreejs.data(csv, true); } g.ready(function(){ g.create(); }) </script> </body> </html>