Skip to content

Instantly share code, notes, and snippets.

@squarednob
squarednob / Japan_geojson_index.html
Last active Dec 30, 2015 — forked from minikomi/index.html
Japan's geojson and D3 code.
View Japan_geojson_index.html
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script src="http://d3js.org/d3.v2.min.js?2.10.0"></script>
<script>
var width = 960,
height = 700;
var svg = d3.select("body").append("svg")
View README.md

Based on http://bl.ocks.org/mbostock/899711 which uses D3 to draw elements into a google maps overlay layer, but doesn't use d3.geo machinery to draw map geometry. This gist illustrates how to align a D3 mercator projection with google maps so we can do standard d3 mapping stuff on top of the google API.