Skip to content

Instantly share code, notes, and snippets.

patricksurry /
Last active Nov 22, 2019
Illustrate embedding geojson/topojson geometry into a google maps overlay using d3.geo.projection.

Based on 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.

minikomi / index.html
Last active Jul 3, 2020
Japan geojson - albers
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<script src=""></script>
var width = 960,
height = 700;
var svg ="body").append("svg")