/** * @ignore */ protected function preparar_componente() { if (!isset($this->_info_mapa['mapfile_path'])) { toba::logger()->error('El componente ' . $this->_id[1] . ' no posee un archivo map definido.'); throw new toba_error_def('Falta especificar un map file para el componente'); } $ruta = toba::proyecto()->get_path_php() . '/' . $this->_info_mapa['mapfile_path']; try { $this->_mapa = new MapObj($ruta); } catch (Exception $e) { toba::logger()->error($e->getMessage()); throw new toba_error('No se pudo crear el objeto Mapserver'); } $this->analizar_layers(); parent::preparar_componente(); }