コード例 #1
0
 /**
  * @param string $lang
  * @param int $minZoom
  * @param int $maxZoom
  * @param OutputInterface $output
  */
 protected function doTextTiles($lang, $minZoom, $maxZoom, OutputInterface $output)
 {
     $mapname = "lang_{$lang}";
     $output->writeln("lang = <info>{$lang}</info>");
     $resources = $this->helper->get('app.path') . '/resources';
     $zoneNames = array('fyros', 'matis', 'tryker', 'zorai', 'bagne', 'sources', 'route_gouffre', 'terre', 'nexus', 'newbieland', 'kitiniere', 'matis_island');
     $this->tileStorage->setMapMode($this->mapmode);
     $this->tileStorage->setMapName($mapname);
     $this->tileStorage->setImageExt('png');
     $gen = new LabelGenerator($this->proj, $resources);
     $gen->setTileStorage($this->tileStorage);
     $gen->loadLabels($this->helper->get('labels.json.array'));
     $gen->setLanguage($lang);
     $gen->setUseRegionForce($this->withRegionColor);
     $gen->generate($zoneNames, array($minZoom, $maxZoom));
 }