1
0
forked from MTSR/mapserver
mapserver/server/tilerendererjob/worker.go

17 lines
259 B
Go
Raw Normal View History

2019-01-24 17:56:37 +03:00
package tilerendererjob
import (
"mapserver/app"
"mapserver/coords"
)
func worker(ctx *app.App, coords <-chan *coords.TileCoords) {
for tc := range coords {
2019-01-27 20:34:04 +03:00
//render tile
2019-02-07 21:48:05 +03:00
_, err := ctx.Tilerenderer.Render(tc)
2019-01-24 17:56:37 +03:00
if err != nil {
panic(err)
}
}
}