public function init() { if (!isset($this->options['id'])) { $this->options['id'] = $this->getId(); } $this->mapOptions['target'] = $this->options['id']; OpenLayersBundle::register($this->view); OLModuleBundle::register($this->view); }