[ Launch: World Map ] 33a2a37e545d3f7e1c03 by danharr
-
-
Save danharr/33a2a37e545d3f7e1c03 to your computer and use it in GitHub Desktop.
London Tube Map
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":"London Tube Map","endpoint":"","display":"svg","public":true,"require":[],"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},"style.css":{"default":true,"vim":false,"emacs":false,"fontSize":12},"world.geojson":{"default":true,"vim":false,"emacs":false,"fontSize":12},"world.json":{"default":true,"vim":false,"emacs":false,"fontSize":12},"tube.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,"thumbnail":"http://i.imgur.com/f2R89DG.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
var w = 500; | |
var h = 500; | |
var geo = tb.tube; | |
var aProjection = d3.geo.mercator().scale(44658) | |
.translate([637, 47369 ]) ; | |
var geoPath = d3.geo.path().projection(aProjection); | |
d3.select("svg").selectAll("path").data(geo.features) | |
.enter() | |
.append("path") | |
.attr("d", geoPath) | |
.attr("class", "countries"); | |
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
path.countries { | |
stroke-width: 1.84; | |
stroke: black; | |
opacity: 1; | |
fill: none; | |
} | |
circle.cities { | |
stroke-width: 1; | |
stroke: black; | |
fill: white; | |
} | |
circle.centroid { | |
fill: red; | |
} pointer-events: none; | |
rect.bbox { | |
fill: none; | |
stroke-dasharray: 5 5; | |
stroke: black; | |
stroke-width: 2; | |
pointer-events: none; | |
} | |
path.graticule { | |
fill: none; | |
stroke-width: 1; | |
stroke: black; | |
} | |
path.graticule.outline { | |
stroke: black; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment