Plot.plot({
projection: { type: "mercator", domain: kallikratisEPSG4326 },
width,
color: {legend: true, filter: (d) => buildings.includes(d.properties.TYPOS_1)},
marks: [
Plot.voronoiMesh(publicbuildingsEPSG4326.features, {x: (d)=> d.geometry.coordinates[0], y: (d)=> d.geometry.coordinates[1], filter: (d) => buildings.includes(d.properties.TYPOS_1), stroke: "lightgray"}),
Plot.geo(kallikratisEPSG4326, {stroke: "lightgray"}),
Plot.geo(kallikratisEPSG4326, Plot.pointer(Plot.centroid({fill:"yellow"}))),
Plot.geo(countiesEPSG4326, {stroke: "black"}),
Plot.dot(kallikratisEPSG4326.features, Plot.pointer(Plot.centroid({title: (d) => d.properties.NAME}))),
Plot.geo(publicbuildingsEPSG4326.features, {filter: (d) => buildings.includes(d.properties.TYPOS_1), stroke: (d) => d.properties.TYPOS_1, r: 1}),
Plot.text(countiesEPSG4326.features, Plot.centroid({text: (d) => d.properties.PER}))
]
})