[ Launch: Hurricanes ] 22c70c86016c292e663a by danharr
[ Launch: Hurricanes ] e9758eb0a570d821c966 by danharr
-
-
Save danharr/22c70c86016c292e663a to your computer and use it in GitHub Desktop.
London
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","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},"wind.json":{"default":true,"vim":false,"emacs":false,"fontSize":12},"london.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/E1aXqGV.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.london; | |
var aProjection = d3.geo.mercator().scale(40766) | |
.translate([513, 43196 ]) ; | |
var geoPath = d3.geo.path().projection(aProjection); | |
d3.select("svg").selectAll("path").data(geo.geometries) | |
.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; | |
stroke: #15004c; | |
opacity: 0.36; | |
fill: none; | |
} | |
circle.cities { | |
stroke-width: 1.4; | |
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