map2 = bertin.draw({
params: { margin: [0, 0, 0, 80], projection: "Globe(-50,-30,0)", width: 600 },
layers: [
{
id: "choro",
geojson: world,
strokeWidth: 0.3,
fill: {
type: "choro",
values: "gdppc",
colors: "RdYlGn",
method: "quantile",
nbreaks: 5,
leg_x: 20,
leg_y: 20,
leg_round: 0,
leg_title: "GDP per capita"
},
tooltip: [
"$CNTR_NAME",
(d) => "gdp per capita:" + Math.round(d.properties.gdppc)
]
},
{ type: "geolines", stroke: "white" },
{ type: "outline" }
]
})