mapLondon2 = {
const svg = d3.create("svg").attr("viewBox", [0, 0, width, heightGB]);
const g = svg.append("g");
g.append("path")
.attr("d", pathLondon(land))
.attr("fill", "#ddd");
g.append("path")
.datum(london)
.attr("d", pathLondon)
.attr("fill", "none")
.attr("stroke", "#fff")
.attr("stroke-width", 1);
svg
.append("g")
.attr("fill-opacity", 0.3)
.selectAll("path")
.data(dataLondonAll)
.join("path")
.attr("transform", d => `translate(${projectionLondon([d.lng, d.lat])})`)
.attr("fill", d => colorGB(d[locationLondon2][currentDayLondon2]))
.attr("stroke", d => colorGB(d[locationLondon2][currentDayLondon2]))
.attr("d", d =>
spikeGB(spikeScaleGB(d[locationLondon2][currentDayLondon2]))
)
.append("title")
.text(d => d["sub_region_2"]);
svg
.append("text")
.attr("x", 20)
.attr("y", 40)
.text(datesLondon[currentDayLondon2]);
svg
.append("text")
.attr("x", 20)
.attr("y", 80)
.text(lockDownMeasureScale(new Date(datesLondon[currentDayLondon2])));
return svg.node();
}