/trunk/metier/api_0.1/Cartes.php |
---|
24,6 → 24,10 |
public function setLargeur($largeur) { |
$this->largeur = $largeur; |
} |
public function setInfoNom($nom) { |
$this->nom = $nom; |
} |
public function getUrlDataSvg() { |
$tpl = Config::get('carteTpl'); |
38,6 → 42,15 |
$url = $this->formaterUrl($tpl, $params); |
return $url; |
} |
public function getUrlMap() { |
$tpl = Config::get('efloreCarteTpl'); |
$params = array('num_nom' => $this->nom->get('id'), 'num_tax' => $this->nom->get('num_taxonomique') , |
'nom_sci' => $this->nom->get('nom_sci'), 'auteur' => $this->nom->get('auteur') , |
'largeur' => $this->largeur, 'mime_type' => 'text/htm'); |
$url = $this->formaterUrl($tpl, $params); |
return $url; |
} |
public function getLegende() { |
$tpl = Config::get('legendeCarteTpl'); |
/trunk/modules/fiche/formateurs/Repartition.php |
---|
32,6 → 32,7 |
public function obtenirDonnees() { |
$donnees['chorodep'] = $this->getChorodep(); |
$donnees['eflore'] = $this->getEflore(); |
return $donnees; |
} |
50,6 → 51,14 |
$chorodep['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('chorodep'); |
return $chorodep; |
} |
public function getEflore() { |
$this->cartes->setProjet('eflore'); |
$this->cartes->setLargeur('max'); |
$this->cartes->setInfoNom($this->nomCourant->getNomRetenu()); |
$chorodep['mapUrl'] = $this->cartes->getUrlMap(); |
return $chorodep; |
} |
public function getBloc() { |
$this->cartes->setProjet('chorodep'); |
/trunk/modules/fiche/squelettes/fiche_repartition.tpl.html |
---|
17,4 → 17,15 |
<a class="lien_metadonnees lien_popup" href="<?= $chorodep['meta']['url']; ?>">Voir toutes les metadonnées</a> |
</span> |
</div> |
<div id="eflore"> |
<h2>Observations</h2> |
<object type="text/htm" data="<?=$eflore['mapUrl']?>" class="svg" alt="<?=$eflore['mapUrl']?>"> |
</object> |
<div id="legende" style="padding:15px;"> |
<h3>LĂ©gende</h3><br /> |
</div> |
<div class="conteneur_lien_metadonnees"> |
</div> |
</div> |
</div> |
/trunk/bibliotheque/NomCourant.php |
---|
24,7 → 24,7 |
} |
public function getNomRetenu() { |
return $this->selectionne; |
return $this->retenu; |
} |
} |