107,19 → 107,6 |
public function getBloc() { |
$donnees['chorodep'] = $this->getChorodepMiniature(); |
$donnees['eflore'] = $this->getMoissonnageMiniature(); |
|
// TODO: moche, comment gérer le fait que l'onglet "synthèse", en "bdtxa", doive |
// afficher la carte chorologie, et non la carte chorodep. |
// workaround: écrasement de l'URL dans ['répartition']['chorodep']: |
if($this->referentiel == 'bdtxa') { |
$syns = $this->conteneur->getApiNoms()->getSynonymes($this->nomCourant->getNnr()); |
$nns_syns = array_keys($syns['resultat']); |
$nns_syns[] = $this->nomCourant->getNnr(); |
$donnees['chorodep'] = Cartes::getCarteUrlPng(Config::get($this->referentiel.'.baseRepartition'), |
'nn:'.implode(',', $nns_syns), |
'190x178'); |
} |
|
return $donnees; |
} |
|