Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 1236 | Rev 1346 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1236 Rev 1327
Line 55... Line 55...
55
	
55
 
56
	private function getRepartition() {
56
	private function getRepartition() {
57
		$projetRepartition = Config::get($this->referentiel.'.baseRepartition');
57
		$projetRepartition = Config::get($this->referentiel.'.baseRepartition');
58
		// eg: eflore ou chorodep
58
		// eg: eflore ou chorodep
59
		// cf: bdtfx.ini, bdtxa.ini
59
		// cf: bdtfx.ini, bdtxa.ini
60
		if ($projetRepartition != "") {
60
		if ($projetRepartition != '') {
61
			$this->cartes->setProjet($projetRepartition);
61
			$this->cartes->setProjet($projetRepartition);
62
			$this->cartes->setLargeur('630');
-
 
63
			
-
 
64
			//TODO: démochir ce code
-
 
65
			// Chargement des nn des synonymes pour obtenir une carte plus complète
62
			$this->cartes->setLargeur('630');
66
			$noms = $this->conteneur->getApiNoms();
-
 
67
			$syns = $noms->getSynonymes($this->nomCourant->getNnr());
-
 
68
			$nns_syns = array_keys($syns['resultat']);
63
			$nt = $this->conteneur->getNomCourant()->getNt();
69
			$nns_syns[] = $this->nomCourant->getNnr();
-
 
70
			$id = 'nn:'.implode(',', $nns_syns);
-
 
71
			
64
			$referentiel = $this->conteneur->getParametre('referentiel');
72
			$this->cartes->setId($id);
65
			$this->cartes->setId("$referentiel.nn:$nt");
73
			$repartition['svgUrl'] = $this->cartes->getUrlDataSvg();
66
			$repartition['svgUrl'] = $this->cartes->getUrlDataSvg();
74
			$repartition['pngUrl'] = $this->cartes->getUrlPng();
67
			$repartition['pngUrl'] = $this->cartes->getUrlPng();
75
			$repartition['legende'] = $this->cartes->getLegendeId();
68
			$repartition['legende'] = $this->cartes->getLegendeId();
76
			$this->meta->setProjet($projetRepartition);
69
			$this->meta->setProjet($projetRepartition);