From 3d64bdd2c5b0aa045bc92b1dc8e0777e24215e31 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Rollo Date: Wed, 25 Sep 2019 10:23:36 +0200 Subject: [PATCH] Added zoom level 0 tiles --- tilerenderer/renderer.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tilerenderer/renderer.go b/tilerenderer/renderer.go index 8606648..254c887 100644 --- a/tilerenderer/renderer.go +++ b/tilerenderer/renderer.go @@ -159,6 +159,9 @@ func (tr *TileRenderer) renderImage(tc *coords.TileCoords, recursionDepth int) ( buf := new(bytes.Buffer) png.Encode(buf, img) + tile := buf.Bytes() + tr.tdb.SetTile(tc, tile) + return img, nil }