map = svg`<svg viewBox="0 0 ${width} ${height}" style="width:100%;height:auto;">${tiles.map(d =>
!d.layers ? '' : svg`
<path fill="brown" stroke="brown" d="${path(geojson(d, d.layers.earth))}"></path>
<path fill="green" stroke="green" stroke-width="2" d="${path(geojson(d, d.layers.landuse))}"></path>
<path fill="blue" stroke="orange" d="${path(filter(geojson(d, d.layers.water), d => !is_water_line(d)))}"></path>
<path fill="none" stroke="lightblue" stroke-width=2 d="${path(filter(geojson(d, d.layers.water), is_water_line))}"></path>
<path fill="none" stroke="#000" stroke-width="1" d="${path(geojson(d, d.layers.roads))}"></path>
<path fill="red" stroke="red" d="${path(geojson(d, d.layers.buildings))}"></path>
<path fill="yellow" d="${path(geojson(d, d.layers.places))}"></path>
`
)}
</svg>`