mirror of
https://github.com/dataforcanada/d4c-service-main-site.git
synced 2026-06-13 14:00:51 +02:00
Improve infrastructure map
This commit is contained in:
@@ -192,16 +192,16 @@ sidebar:
|
|||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
const width = 960;
|
const width = 750;
|
||||||
const height = 600;
|
const height = 400;
|
||||||
|
|
||||||
const svg = d3.select('#map')
|
const svg = d3.select('#map')
|
||||||
.attr('width', width)
|
.attr('width', width)
|
||||||
.attr('height', height);
|
.attr('height', height);
|
||||||
|
|
||||||
const projection = d3.geoNaturalEarth1()
|
const projection = d3.geoNaturalEarth1()
|
||||||
.scale(355)
|
.scale(280)
|
||||||
.center([-30, 50])
|
.center([-75, 65])
|
||||||
.translate([width / 2, height / 2]);
|
.translate([width / 2, height / 2]);
|
||||||
|
|
||||||
const path = d3.geoPath().projection(projection);
|
const path = d3.geoPath().projection(projection);
|
||||||
|
|||||||
Reference in New Issue
Block a user