squares2 = bertin.draw({
params: { projection: "Eckert4", background: "white" },
layers: [
{ type: "header", text: title },
{ geojson: land, fill: "none", stroke: "white" },
{
display: fields.length == 0 ? false : true,
type: "regulargrid",
geojson: data,
operator: "mean",
geoprocessing: geoprocessing,
step: step2,
values: "gdppc",
stroke: "#1c254f",
fill: {
nbreaks: nbreaks,
method: "quantile",
colors: "Reds"
},
tooltip: ["$id", "$value"],
strokeWidth: 0.2
},
{ type: "graticule" },
{ type: "outline" }
]
})