Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Regard whitespace Rev 1328 → Rev 1329

/trunk/modules/mobile/sources/Repartition.php
17,6 → 17,7
private $conteneur = null;
private $nomCourant = null;
private $donnees = array();
private $referentiel = 'bdtfx';
private $cartes;
public function __construct(Conteneur $conteneur) {
23,15 → 24,18
$this->conteneur = $conteneur;
$this->nomCourant = $this->conteneur->getNomCourant();
$this->cartes = $this->conteneur->getApiCartes();
$this->referentiel = $this->conteneur->getParametre('referentiel');
}
 
public function getDonnees() {
$donnees['chorodep'] = $this->getChorodepMiniature();
$donnees['carte'] = $this->getChorodepMiniature();
return $donnees;
}
private function getChorodepMiniature() {
$this->cartes->setProjet('chorodep');
$url_carte = null;
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
41,7 → 45,9
$nns_syns[] = $this->nomCourant->getNnr();
$id = 'nn:'.implode(',', $nns_syns);
$this->cartes->setId($id);
return $this->cartes->getUrlDataSvg();
$url_carte = $this->cartes->getUrlDataSvg();
}
return $url_carte;
}
}
?>