Changement de style a la volee
[lhc/web/spip_carte_de_sites.git] / contenu / page-carte_de_sites.html
index 90c35ca..37ae6d0 100755 (executable)
@@ -8,6 +8,7 @@
     - zoom    = 5   : pour un centrage optimal sur la carte de France
     - larg  = 540   : largeur
     - haut  = 400   : hauteur
     - zoom    = 5   : pour un centrage optimal sur la carte de France
     - larg  = 540   : largeur
     - haut  = 400   : hauteur
+    - style = 14189 : style de carte. Voir http://maps.cloudmade.com/editor
 ]
 
 <!-- Carte -->
 ]
 
 <!-- Carte -->
@@ -47,7 +48,7 @@
                cloudmadeUrl = 'http://{s}.tile.cloudmade.com/BC9A493B41014CAABB98F0471D759707/{styleId}/256/{z}/{x}/{y}.png';
                
        var midnightCommander = new L.TileLayer(cloudmadeUrl, cloudmadeOptions, {styleId: 999}),
                cloudmadeUrl = 'http://{s}.tile.cloudmade.com/BC9A493B41014CAABB98F0471D759707/{styleId}/256/{z}/{x}/{y}.png';
                
        var midnightCommander = new L.TileLayer(cloudmadeUrl, cloudmadeOptions, {styleId: 999}),
-               minimal = new L.TileLayer(cloudmadeUrl, cloudmadeOptions, {styleId: 14189});
+               minimal = new L.TileLayer(cloudmadeUrl, cloudmadeOptions, {styleId: [(#ENV{style}|sinon{'14189'})]});
                
 
     <B_map>
                
 
     <B_map>