37,14 → 37,8 |
if(Config::get($this->referentiel.'.baseRepartition') != null) { |
$this->cartes->setProjet(Config::get($this->referentiel.'.baseRepartition')); |
$this->cartes->setLargeur('570x534'); |
//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); |
$nt = $this->nomCourant->getNt(); |
$this->cartes->setId("{$this->referentiel}.nt:$nt"); |
$url_carte = $this->cartes->getUrlDataSvg(); |
} |
return $url_carte; |