squares = bertin.draw({
params: { projection: "Hufnagel", background: "white" },
layers: [
{
type: "header",
text: field == "pop" ? "- WORLD POPULATION -" : "- WORLD WEALTH -",
fill: "#383838"
},
{
type: "regularsquare",
geojson: data,
step: step,
demers: demers,
values: field,
k: k,
stroke: "#E8AE38",
fill: "#383838",
strokeWidth: 1.5
},
{ type: "hatch", stroke: "white", spacing: 4, strokeWidth: 3 },
{ geojson: data, fill: "white", fillOpacity: 0.05, stroke: "none" },
{ type: "outline", fill: "#383838" }
]
})