forked from MTSR/mapserver
26 lines
573 B
Go
26 lines
573 B
Go
package tilerenderer
|
|
|
|
import (
|
|
"image"
|
|
"mapserver/coords"
|
|
"mapserver/mapblockrenderer"
|
|
"mapserver/tiledb"
|
|
)
|
|
|
|
type TileRenderer struct {
|
|
mapblockrenderer *mapblockrenderer.MapBlockRenderer
|
|
tiledb *tiledb.DBAccessor
|
|
}
|
|
|
|
func NewTileRenderer(mapblockrenderer *mapblockrenderer.MapBlockRenderer, tiledb *tiledb.DBAccessor) *TileRenderer {
|
|
return &TileRenderer{
|
|
mapblockrenderer: mapblockrenderer,
|
|
tiledb: tiledb,
|
|
}
|
|
}
|
|
|
|
//TODO layerConfig
|
|
func (tr *TileRenderer) Render(tc coords.TileCoords, layerId int) (*image.NRGBA, error) {
|
|
return nil, nil
|
|
}
|