Dimensionner la carte a volonte
[lhc/web/spip_carte_de_sites.git] / contenu / page-carte_de_sites.html
index 7406c32..90c35ca 100755 (executable)
@@ -6,10 +6,12 @@
     - legende = non : ne pas afficher la legende
     - coord    = 46.8,2.52   : pour un centrage optimal sur la carte de France
     - zoom    = 5   : pour un centrage optimal sur la carte de France
+    - larg  = 540   : largeur
+    - haut  = 400   : hauteur
 ]
 
 <!-- Carte -->
-<div id="map" style="width: 540px; height: 400px">
+<div id="map" style="width: [(#ENV{larg}|sinon{'540'})]px; height: [(#ENV{haut}|sinon{'400'})]px">
 <script src="[(#CHEMIN{lib/CloudMade-Leaflet-edb7d25/dist/leaflet.js}|url_absolue)]"></script>
 
 <script>