Skip to content

Instantly share code, notes, and snippets.

@poezn
Last active August 29, 2015 14:09
Show Gist options
  • Save poezn/aac92677e11a8122c6a2 to your computer and use it in GitHub Desktop.
Save poezn/aac92677e11a8122c6a2 to your computer and use it in GitHub Desktop.
SF streets
{"description":"SF streets","endpoint":"","display":"svg","public":true,"require":[{"name":"Topojson","url":"http://d3js.org/topojson.v1.min.js"}],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"_.md":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"pingpong","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"ajax-caching":true,"inline-console":true,"thumbnail":"http://i.imgur.com/yUJAQwu.png"}
d3.json("https://rawgit.com/poezn/aac92677e11a8122c6a2/raw/f68dc6493674ca32ea7dd2d2a988c81980f7cf76/sf.json", function(err, data) {
ready(data);
});
var projection = d3.geo.albersUsa()
.scale(1760)
.translate([tb.vw / 2, tb.vh / 2]);
function ready(data) {
var path = d3.geo.path().projection(projection);
/*g.selectAll("path")
.data(topojson.feature(data, data.objects.sf).features)
.enter().append("path")
.attr("d", path);*/
}
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment