{
const target_map = htl.html`<svg viewBox="0 0 ${width + 120} ${height + 120}" style="display: block;"/></svg>`
const svg_sel= d3.select(target_map);
const grouping= svg_sel.append("g")
.attr("transform", `translate( ${margin.left}, ${margin.top })`);
grouping.append("path")
.attr("d", path(outline))
.attr("fill", "#fff");
grouping.append("path")
.attr("d", path(land) )
.attr("fill", "##2E2E2E");
grouping.append("path")
.attr("d", path(borders))
.attr("fill", "none")
.attr("stroke", "#fff");
grouping.append("path")
.attr("d", path(outline))
.attr("fill", "none")
.attr("stroke", "white");
svg_sel.selectAll("circle")
.data(select_data.slice(0, maxNum))
.join('circle')
.attr('cx', d => projection([ d.Longitude, d.Latitude])[0])
.attr('cy', d => projection([ d.Longitude, d.Latitude])[1])
.attr('fill', d=> colorXco2( d.Xco2))
.attr('r',2);
grouping.append("image")
.attr("href", color_bar)
.attr("width", 1200)
.attr("height", 80)
.attr("transform", `translate( ${margin.top + 20}, ${height - margin.top -margin.bottom + 50})`);
return target_map;
}