From 4218baedd23f93f3fe6d427c19e158fe95655348 Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Thu, 17 Jan 2019 13:44:39 +0100 Subject: [PATCH] main stub --- main.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 1566450..53f8a90 100644 --- a/main.go +++ b/main.go @@ -10,8 +10,11 @@ import ( "mapserver/params" "mapserver/worldconfig" "github.com/sirupsen/logrus" - "mapserver/initialrenderer" + "mapserver/tilerenderer" "mapserver/tiledb" + "mapserver/layerconfig" + "mapserver/coords" + ) const ( @@ -72,6 +75,13 @@ func main() { panic(err) } - initialrenderer.Render(r, tdb) + tr := tilerenderer.NewTileRenderer(r, tdb, layerconfig.DefaultLayers) + + tc := coords.NewTileCoords(0,0,9,0) + _, err = tr.Render(tc) + + if err != nil { + panic(err) + } }