[ Launch: SF streets ] aac92677e11a8122c6a2 by poezn
-
-
Save poezn/aac92677e11a8122c6a2 to your computer and use it in GitHub Desktop.
SF streets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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);*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment