Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Regard whitespace Rev 1219 → Rev 1220

/trunk/metier/api_0.1/Cartes.php
100,10 → 100,17
public function getUrlFloreProbablePng() {
$tpl = Config::get('carteFloreProbableTpl');
$params = array('id' => $this->id,
'mime_type' => 'image/png');
'mime_type' => 'text/plain');
$url = $this->formaterUrl($tpl, $params);
return $url;
$donnees = $this->chargerDonnees($url);
$url_carte = null;
// on demande l'url de la carte au web service
// car la carte peut ne pas exister
if(isset($donnees['binaire.href'])) {
$url_carte = $donnees['binaire.href'];
}
return $url_carte;
}
 
public function getLegendeId() {
$tpl = Config::get('legendeIdCarteTpl');