turkey = {
let map = eurostatmap
.map("ch")
.stat({
eurostatDatasetCode: "demo_r_d3dens",
unitText: "people/km²",
filters: { time: 2021 }
})
.projectionFunction(projection)
.svgId("turkey")
.nutsLvl(2)
.width(width)
.height(height)
.scale("03M")
.pixSize(0.021)
.geoCenter([showSurrounding ? 35.5 : 38.5, 38])
.labelling(true)
.labelsToShow(["countries", "values"])
.labelShadow(true)
.labelShadowWidth({ seas: 3, countries: 3, cc: 3, values: 3 })
.labelsConfig(labels)
.cntrgFillStyle("none")
.bordersToShow(["eu", "efta", "cc", "oth", "co"])
.cntbnStroke({ oth: "grey", co: "grey" })
.cntbnStrokeWidth({ oth: 1 });
if (!showSurrounding) {
map.countriesToShow(["TR"]).bordersToShow(["TR"]);
}
return map.build();
}