earthjs
Version:
D3 Earth JS using SVG, Canvas & THREE js, build with some plugins.
23 lines (22 loc) • 679 B
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/earthjs.js'></script>
<style>
.ej-svg {position: inherit;}
.graticule path{stroke:#ff0101;stroke-width:2;}
</style>
</head>
<body>
<svg class="ej-svg"></svg>
<svg class="ej-svg"></svg>
<script>
const g = earthjs({selector:'.ej-svg'})
.register(earthjs.plugins.inertiaPlugin())
.register(earthjs.plugins.graticuleSvg())
.register(earthjs.plugins.autorotatePlugin())
.create();
</script>
</body>
</html>