{
const data = new GeoJSON()
.polygons(
[
[
[
[-3, 45],
[4, 45],
[4, 52],
[-3, 52]
]
],
[
[
[6, 48],
[9, 47],
[6.5, 46]
]
]
],
{ properties: { name: "Southland" } }
)
.polygon(
[
[-3, 59],
[4, 59],
[4, 52],
[-3, 52]
],
{ properties: { name: "Northville" } }
).featureCollection;
return Plot.plot({
height: 200,
width: 200,
inset: 4,
color: { legend: true },
projection: { type: "orthographic", domain: data },
marks: [Plot.geo(data, { fill: (d) => d.properties.name, stroke: "black" })]
});
}