// Set up metatiler func (self *app) setupMetatiler() error { if self.commonConfig.MetaSize < 1 { return fmt.Errorf("Invalid MetaSize %v", self.commonConfig.MetaSize) } if self.commonConfig.TileSize < 1 { return fmt.Errorf("Invalid TileSize %v", self.commonConfig.TileSize) } self.metatiler = gopnik.NewMetatiler( uint64(self.commonConfig.MetaSize), uint64(self.commonConfig.TileSize)) return nil }
func (self *app) configureDefault() { self.metatiler = gopnik.NewMetatiler(8, 256) }