function renderMercator(listOfCities) {
const projection = d3.geoMercator();
const path = d3.geoPath(projection);
const background = "white";
const circles = listOfCities.map(d => {
const position = projection([d.lng, d.lat]);
const [x, y] = position;
const circle = svg`<circle cx="${x}" cy="${y}" r="5" fill="tomato" opacity="0.5" />`;
return circle;
});
return html`
<svg viewbox="0 0 ${width} ${width / 2}">
<path d="${path(countries)}" stroke="#515150" fill="${background}" />
${circles}
</svg>
`;
}