125,25 → 125,36 |
} |
|
private function getChorodepMiniature() { |
$this->cartes->setProjet('chorodep'); |
$this->cartes->setLargeur('190x178'); |
//TODO: démochir ce code |
// Chargement des nn des synonymes pour obtenir une carte plus complète |
$noms = $this->conteneur->getApiNoms(); |
$syns = $noms->getSynonymes($this->nomCourant->getNnr()); |
$nns_syns = array_keys($syns['resultat']); |
$nns_syns[] = $this->nomCourant->getNnr(); |
$id = 'nn:'.implode(',', $nns_syns); |
$this->cartes->setId($id); |
return $this->cartes->getUrlPng(); |
$projetRepartition = Config::get($this->referentiel.'.baseRepartition'); |
$url = null; |
if ($projetRepartition != "") { |
$this->cartes->setProjet($projetRepartition); |
$this->cartes->setProjet('chorodep'); |
$this->cartes->setLargeur('190x178'); |
//TODO: démochir ce code |
// Chargement des nn des synonymes pour obtenir une carte plus complète |
$noms = $this->conteneur->getApiNoms(); |
$syns = $noms->getSynonymes($this->nomCourant->getNnr()); |
$nns_syns = array_keys($syns['resultat']); |
$nns_syns[] = $this->nomCourant->getNnr(); |
$id = 'nn:'.implode(',', $nns_syns); |
$this->cartes->setId($id); |
$url = $this->cartes->getUrlPng(); |
} |
return $url; |
} |
|
private function getMoissonnageMiniature() { |
$this->cartes->setProjet('moissonnage'); |
$this->cartes->setLargeur('190'); |
$this->cartes->setInfoReferentiel($this->referentiel); |
$this->cartes->setInfoNom($this->nomCourant->getNt()); |
return $this->cartes->getUrlMapPng(); |
$projetMoissonnage = Config::get($this->referentiel.'.baseMoissonnage'); |
$url = null; |
if ($projetRepartition != "") { |
$this->cartes->setProjet('moissonnage'); |
$this->cartes->setLargeur('190'); |
$this->cartes->setInfoReferentiel($this->referentiel); |
$this->cartes->setInfoNom($this->nomCourant->getNt()); |
$url = $this->cartes->getUrlMapPng(); |
} |
return $url; |
} |
} |
?> |