map = svg`<svg viewBox="0 0 ${width} ${height}">
<g class="basemap-layer">
${tiles.map(
([x, y, z], i, { translate: [tx, ty], scale: k }) => svg`
<image xlink:href="${getTonerTileUrl(x, y, z)}" x="${Math.round(
(x + tx) * k
)}" y="${Math.round((y + ty) * k)}" width="${k}" height="${k}">
`
)}
</g>
<g class="data-layer">
${tiles.map(
([x, y, z], i, { translate: [tx, ty], scale: k }) => svg`
<image xlink:href="${getTileUrl(x, y, z)}" x="${Math.round(
(x + tx) * k
)}" y="${Math.round((y + ty) * k)}" width="${k}" height="${k}">
`
)}
</g>
</svg>`