Hi everyone! I have a question about exporting maps as SVG when they have text labels on them. Currently, when I try to export maps like this example:
All my text gets whited out. The SVG code to produce the text labels is as such:
worldMap.append("g")
.attr("id", "names")
.selectAll("text")
.data(topNodes)
.join("text")
.attr("transform", d => `translate(${mapProjection([d[baseX], d[baseY]])})`)
.attr("font-size", "0.3em")
.attr("font-family", "Akkurat LL")
.attr("fill", "#000")
.attr("stroke", "white")
.attr("stroke-width", "0.31em")
.attr("paint-order", "stroke")
.text(d => aggregationType === "Cities" ? d["city"] : d["iata"]);
Should I order the stroke in a different way to ensure that it renders correctly on my map when I export it to svg?