mapserver/tilerenderer/renderer.go
2019-01-17 10:04:09 +01:00

30 lines
599 B
Go

package tilerenderer
import (
"image"
"mapserver/coords"
"mapserver/mapblockrenderer"
)
type TileRenderer struct {
mapblockrenderer *mapblockrenderer.MapBlockRenderer
}
func NewTileRenderer(mapblockrenderer *mapblockrenderer.MapBlockRenderer) *TileRenderer {
return &TileRenderer{
mapblockrenderer: mapblockrenderer,
}
}
//TODO layerConfig
func (tr *TileRenderer) Render(tc coords.TileCoords) (*image.NRGBA, error) {
if tc.Zoom == 13 {
//max zoomed in on mapblock level
//mbr := coords.GetMapBlockRangeFromTile(tc, 0)
//return tr.mapblockrenderer.Render()
}
return nil, nil
}