36,6 → 36,7 |
public function obtenirDonnees() { |
$this->getRepartition(); |
$this->getMoissonnage(); |
$this->getFloreProbable(); |
$this->donnees['widget']['nt'] = $this->nomCourant->getNt(); |
$this->donnees['widget']['nn'] = $this->nomCourant->getNnr(); |
$this->donnees['widget']['referentiel'] = $this->referentiel; |
105,6 → 106,20 |
$this->donnees['moissonnage'] = $eflore; |
} |
|
private function getFloreProbable() { |
$projetFloreProbable = "sophy";//Config::get($this->referentiel.'.floreProbable'); |
if (! $projetFloreProbable) return; |
$this->cartes->setProjet($projetFloreProbable); |
|
$this->meta->setProjet($projetFloreProbable); |
$this->cartes->setId($this->referentiel.'.nt:'.$this->nomCourant->getNt()); |
// TODO: url téléchargement de la carte lorsqu'on sera sur que c'est possible |
// dans ['carte']['telechargement'] par exemple |
$this->donnees['flore_probable'] = array('carte' => array(), 'meta' => array()); |
$this->donnees['flore_probable']['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees($projetFloreProbable); |
$this->donnees['flore_probable']['carte']['url'] = $this->cartes->getUrlFloreProbablePng(); |
} |
|
public function getBloc() { |
$donnees['chorodep'] = $this->getChorodepMiniature(); |
$donnees['eflore'] = $this->getMoissonnageMiniature(); |