bertin.draw({
params: { projection: d3.geoNaturalEarth2() },
layers: [
{
type: "text",
text: `${year}`,
position: [30, 320],
fontSize: 80,
fontWeight: "bold",
fill: "#d95da1",
fontFamily: "Roboto"
},
{
geojson: countries,
fill: "#d95da1",
stroke: "white",
strokeWidth: 0.3,
tooltip: ["$cntry_name", "$gwsyear", "$gweyear"]
},
{
geojson: land,
stroke: "none",
fill: "white",
fillOpacity: 0.3
},
{ type: "graticule" },
{ type: "outline" }
]
})