Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 263 → Rev 262

/trunk/metier/api_0.1/Cartes.php
25,7 → 25,7
$this->largeur = $largeur;
}
public function getUrlDataSvg() {
public function getUrlImage() {
switch ($this->type) {
case 'nn' :
$nomTemplate = 'cartesParNnTpl';
35,25 → 35,10
break;
}
$tpl = Config::get($nomTemplate);
$params = array($this->type => $this->numero, 'largeur' => $this->largeur, 'mime-type' => 'image/svg+xml');
$params = array($this->type => $this->numero, 'largeur' => $this->largeur);
$url = $this->formaterUrl($tpl, $params);
return $url;
}
public function getUrlPng() {
switch ($this->type) {
case 'nn' :
$nomTemplate = 'cartesParNnTpl';
break;
case 'nt' :
$nomTemplate = 'cartesParNtTpl';
break;
}
$tpl = Config::get($nomTemplate);
$params = array($this->type => $this->numero, 'largeur' => $this->largeur, 'mime-type' => 'image/png');
$url = $this->formaterUrl($tpl, $params);
return $url;
}
 
public function getLegende() {
switch ($this->type) {