mapserver/server/tilerendererjob/job.go

18 lines
251 B
Go
Raw Normal View History

2019-01-24 09:52:25 +03:00
package tilerendererjob
import (
"mapserver/app"
2019-02-07 20:44:40 +03:00
"mapserver/settings"
2019-01-24 09:52:25 +03:00
)
func Job(ctx *app.App) {
2019-02-07 20:44:40 +03:00
if ctx.Settings.GetBool(settings.SETTING_INITIAL_RUN, true) {
2019-02-20 12:10:00 +03:00
initialRender(ctx)
2019-01-24 17:56:37 +03:00
}
2019-01-24 09:52:25 +03:00
2019-02-20 12:10:00 +03:00
incrementalRender(ctx)
2019-01-24 09:52:25 +03:00
2019-01-25 19:57:38 +03:00
panic("render job interrupted!")
2019-01-24 09:52:25 +03:00
}