[ Launch: White world map ] 5044129 by PatMartin
[ Launch: Weather stations pseudo heatmap (using topoJSON; heatmap.js) ] 4983896 by poezn
[ Launch: Weather stations pseudo heatmap (using topoJSON) ] 4982600 by poezn
[ Launch: Weather stations pseudo heatmap ] 4758743 by poezn
[ Launch: Weather stations pseudo heatmap ] 4746489 by poezn
[ Launch: Weather stations pseudo heatmap ] 4744710 by poezn
[ Launch: Weather stations ] 4743404 by poezn
-
-
Save PatMartin/5044129 to your computer and use it in GitHub Desktop.
White world 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":"White world map","endpoint":"","display":"svg","public":true,"require":[{"name":"heatmap.js","url":"https://raw.github.com/pa7/heatmap.js/master/src/heatmap.js"},{"name":"TopoJSON","url":"http://d3js.org/topojson.v0.min.js"},{"name":"TopoJSON","url":"http://d3js.org/topojson.v0.min.js"}],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"stations.json":{"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},"countries.json":{"default":true,"vim":false,"emacs":false,"fontSize":12},"data.json":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01} |
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 projections = | |
[ | |
d3.geo.mercator(), | |
d3.geo.orthographic(), | |
d3.geo.albersUsa(), | |
d3.geo.azimuthalEqualArea(), | |
d3.geo.azimuthalEquidistant(), | |
d3.geo.equirectangular(), | |
d3.geo.gnomonic(), | |
d3.geo.stereographic(), | |
d3.geo.albers.raw(), | |
d3.geo.azimuthalEqualArea.raw(), | |
d3.geo.azimuthalEquidistant.raw(), | |
d3.geo.equirectangular.raw(), | |
d3.geo.gnomonic.raw (), | |
d3.geo.mercator.raw(), | |
d3.geo.orthographic.raw(), | |
d3.geo.stereographic.raw() | |
]; | |
var projection = projections[1] | |
.scale(143) | |
var path = d3.geo.path() | |
.projection(projection); | |
var world = tb['countries']; | |
var countries = topojson.object(world, world.objects.land); | |
console.log(countries) | |
g.selectAll('path.country') | |
.data([countries]) | |
.enter().append('path') | |
.attr({ | |
d: function(d, i) { return path(d) }, | |
}) | |
.style({ | |
fill: '#FFFFFF' | |
}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment