diff --git a/coords/tilecoords.go b/coords/tilecoords.go index 82d2ab7..47e9832 100644 --- a/coords/tilecoords.go +++ b/coords/tilecoords.go @@ -20,7 +20,7 @@ func NewTileCoords(x, y, zoom int, layerId int) *TileCoords { func (tc *TileCoords) ZoomOut(n int) *TileCoords { var nc *TileCoords = tc - for i := 1; i= 1; i-- { for _, mb := range mblist { //13 tc := coords.GetTileCoordsFromMapBlock(mb.Pos, ctx.Config.Layers) - //11-1 + //12-1 tc = tc.ZoomOut(13 - i) key := getTileKey(tc) diff --git a/tilerenderer/renderer.go b/tilerenderer/renderer.go index 9353b74..6e31630 100644 --- a/tilerenderer/renderer.go +++ b/tilerenderer/renderer.go @@ -235,7 +235,7 @@ func (tr *TileRenderer) RenderImage(tc *coords.TileCoords, recursionDepth int) ( "Y": tc.Y, "Zoom": tc.Zoom, "LayerId": tc.LayerId, - "size": len(tile.Data), + "size": len(tile.Data), "quadrender": quadrender, "quadresize": quadresize, "encode": encode,