- Iframe automatique sous la carte avec apparition ajax
[lhc/web/spip_carte_de_sites.git] / contenu / page-carte_de_sites.html
index 690d121..f66bd36 100755 (executable)
@@ -13,6 +13,8 @@
     - popup = oui   : autoriser les popups
     - images = oui  : afficher les images
     - groupe = XXXX : Groupe de mot-clé dont il faut générer la carte
+    - lien  = oui   : Lien automatique vers la grande carte
+    - iframe= oui   : Affichage du code iframe par défaut
 ]
 
 <!-- Carte -->
@@ -44,7 +46,7 @@
                </BOUCLE_sites>
 </BOUCLE_mots_types>
 
-       var cloudmadeAttribution = 'Map data &copy; 2011 OpenStreetMap contributors, Imagery &copy; 2011 CloudMade',
+       var cloudmadeAttribution = 'Map data &copy; 2011 OpenStreetMap contributors, Imagery &copy; 2011 CloudMade<br/>[(#ENV{lien}|!={non}|oui)(<a href="#URL_SITE_SPIP/?page=carte_de_sites_plein&lien=non&groupe=#ENV{groupe}&boite=oui&haut=900[&coord=(#ENV{coord})][&zoom=(#ENV{zoom})][&legende=(#ENV{legende})]" rel="external" target="_parent">Voir la carte en plus grand</a>)]',
                cloudmadeOptions = {maxZoom: 18, attribution: cloudmadeAttribution},    
                cloudmadeUrl = 'http://{s}.tile.cloudmade.com/BC9A493B41014CAABB98F0471D759707/{styleId}/256/{z}/{x}/{y}.png';
                
@@ -90,6 +92,9 @@
 </script>
 </div>
 
+[(#ENV{iframe}|!={non}|oui)
+<INCLURE{fond=inclure/iframe_carte}{ajax}{env}>
+]
 
 <B_legende>
 <!-- Legende -->