Skip to content

Instantly share code, notes, and snippets.

@vincentpham1991
vincentpham1991 / index.html
Created August 15, 2018 20:52 — forked from ivyywang/README.md
Drag to Rotate the Globe
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/topojson/1.6.19/topojson.min.js"></script>
<style type="text/css">
.land{
@vincentpham1991
vincentpham1991 / README.md
Created August 17, 2018 00:25 — forked from lunarmoon26/README.md
D3 V5 - Faux-3d Shaded Globe With Zoom, Places and Arcs

A D3 V5 implementation of a shaded globe mimic the 3d effect. Drag to rotate and middle wheel to zoom. The flyer arcs are interpolated from 2 control points.

You can modify the dataset (Topojson format) to change landmarks.