map = svg`<svg viewBox="0 0 ${width} ${height}">
<g id="water">
${segment_water.map((m) =>
m.map(
(h, i) =>
`<g id = "hatch${i}">
<path d ='M${[h.a.x, h.a.y]}L${[
h.b.x,
h.b.y
]}' stroke-opacity="0.3" stroke="black"/>
</g>`
)
)}
</g>
<g id="twborders">
${tw.features.map((m) => `<path d =${path(m)} fill="none" />`)}
)}
</g>
<g id = "hillshade">
${classedSplitZ.map(
(h, i) => `<path d ='M${[h.a.x, h.a.y]}L${[h.b.x, h.b.y]}' stroke="black"/>`
)}
</g>
<g id = "parks">
${science_parks.features.map(
(h, i) =>
`<circle fill="red" cx = ${path.centroid(h)[0]} cy = "${
path.centroid(h)[1]
}" r= "2" id = "${h.properties.name_en}"></circle>`
)}
${addedscienceparks.features.map(
(a, i) =>
`<circle fill="red" cx = ${projection(a.geometry.coordinates)[0]} cy = "${
projection(a.geometry.coordinates)[1]
}" r= "2" id = "${a.properties.name_en}"></circle>`
)}
</g>
</svg>`