You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
393 B
20 lines
393 B
var width = 960;
|
|
var height = 490;
|
|
|
|
d3.select('svg')
|
|
.attr('width', width)
|
|
.attr('height', height);
|
|
|
|
var worldProjection = d3.geoEquirectangular();
|
|
|
|
d3.select('svg').selectAll('path')
|
|
.data(map_json.features)
|
|
.enter()
|
|
.append('path')
|
|
.attr('fill', '#099');
|
|
|
|
var dAttributeFunction = d3.geoPath()
|
|
.projection(worldProjection);
|
|
|
|
d3.selectAll('path').attr('d', dAttributeFunction);
|