Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 1217 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1217 Rev 1220
Line 98... Line 98...
98
	}
98
	}
Line 99... Line 99...
99
	
99
	
100
	public function getUrlFloreProbablePng() {
100
	public function getUrlFloreProbablePng() {
101
		$tpl = Config::get('carteFloreProbableTpl');
101
		$tpl = Config::get('carteFloreProbableTpl');
102
		$params = array('id' => $this->id, 
102
		$params = array('id' => $this->id, 
103
						'mime_type' => 'image/png');
103
						'mime_type' => 'text/plain');
-
 
104
		$url = $this->formaterUrl($tpl, $params);
-
 
105
		$donnees = $this->chargerDonnees($url);
-
 
106
		$url_carte = null;
-
 
107
		// on demande l'url de la carte au web service
-
 
108
		// car la carte peut ne pas exister
-
 
109
		if(isset($donnees['binaire.href'])) {
-
 
110
			$url_carte = $donnees['binaire.href'];
104
		$url = $this->formaterUrl($tpl, $params);
111
		}
105
		return $url;
112
		return $url_carte;
Line 106... Line 113...
106
	}
113
	}
107
 
114
 
108
	public function getLegendeId() {
115
	public function getLegendeId() {