25,7 → 25,7 |
$this->largeur = $largeur; |
} |
|
public function getUrlImage() { |
public function getUrlDataSvg() { |
switch ($this->type) { |
case 'nn' : |
$nomTemplate = 'cartesParNnTpl'; |
35,10 → 35,25 |
break; |
} |
$tpl = Config::get($nomTemplate); |
$params = array($this->type => $this->numero, 'largeur' => $this->largeur); |
$params = array($this->type => $this->numero, 'largeur' => $this->largeur, 'mime-type' => 'image/svg+xml'); |
$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) { |