/trunk/modules/fiche/squelettes/fiche_repartition.tpl.html |
---|
23,6 → 23,12 |
</object> |
<div id="legende" style="padding:15px;"> |
<h3>Légende</h3><br /> |
<? foreach ($eflore['legende'] as $id => $details) :?> |
<div style="clear:left; "> |
<div class="bloc_legende_repartition" style="background:<?=$details['couleur']?>"></div> |
<div ><b><?=$details['nom']?> : </b><?=$details['description']?></div> |
</div> |
<? endforeach; ?> |
</div> |
<div class="conteneur_lien_metadonnees"> |
/trunk/modules/fiche/formateurs/Repartition.php |
---|
43,7 → 43,7 |
$this->cartes->setId($id); |
$chorodep['svgUrl'] = $this->cartes->getUrlDataSvg(); |
$chorodep['pngUrl'] = $this->cartes->getUrlPng(); |
$chorodep['legende'] = $this->cartes->getLegende(); |
$chorodep['legende'] = $this->cartes->getLegendeId(); |
$this->meta->setProjet('chorodep'); |
$meta = $this->meta->getMetaDonnees(); |
$citation = $meta[0]['citation']; |
56,8 → 56,9 |
$this->cartes->setProjet('eflore'); |
$this->cartes->setLargeur('max'); |
$this->cartes->setInfoNom($this->nomCourant->getNomRetenu()); |
$chorodep['mapUrl'] = $this->cartes->getUrlMap(); |
return $chorodep; |
$eflore['mapUrl'] = $this->cartes->getUrlMap(); |
$eflore['legende'] = $this->cartes->getLegende(); |
return $eflore; |
} |
public function getBloc() { |
/trunk/metier/api_0.1/Cartes.php |
---|
52,9 → 52,16 |
return $url; |
} |
public function getLegendeId() { |
$tpl = Config::get('legendeIdCarteTpl'); |
$params = array('id' => $this->id); |
$url = $this->formaterUrl($tpl, $params); |
$donnees = $this->chargerDonnees($url); |
return $donnees; |
} |
public function getLegende() { |
$tpl = Config::get('legendeCarteTpl'); |
$params = array('id' => $this->id); |
$url = $this->formaterUrl($tpl, $params); |
$donnees = $this->chargerDonnees($url); |
return $donnees; |