map = {
const svg = d3.select(DOM.svg(width, height))
.style("width", "100%")
.style("height", "auto")
svg.append("rect")
.attr("width", width)
.attr("height", height)
.attr("x", 0)
.attr("y", 0)
.attr("fill", 'white')
const g = svg.append("g").attr("id", "map-layers")
const land = g.append("g")
.attr("id", "land")
.append("path")
.datum(landArea)
.attr("fill", "white")
.attr("stroke-width", 1.25)
.attr("stroke", 'white')
.attr("stroke-line-join", "round")
.attr("d", path)
const countiesGroup = g.append("g").attr("id", "county-boundaries")
countiesGroup.selectAll('.county')
.data(countyFeats.features)
.enter()
.append('path')
.attr("stroke-width", 1.25)
.attr("stroke", 'white')
.attr('d', path)
.attr('fill', 'gray')
.on('mouseover', mouseover)
.on('mouseout', mouseout)
function mouseover(d){
d3.select(this).style('fill', 'orange');
}
function mouseout(d){
d3.select(this).style('fill', 'gray');
}
const labelsGroup = g.append("g").attr("id", "labels")
return svg.node()
}