From: Ludovic CHEVALIER Date: Fri, 24 Feb 2012 10:49:56 +0000 (+0100) Subject: Changement de style a la volee X-Git-Tag: v0.5~11 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fspip_carte_de_sites.git;a=commitdiff_plain;h=20229923c6902ca32cb596488a5c62c317e4f34a;ds=inline Changement de style a la volee --- diff --git a/TODO b/TODO index 0a2de96..81be3e8 100755 --- a/TODO +++ b/TODO @@ -39,3 +39,4 @@ * Carte: ajout de filtres pour centrer et zoomer comme on veut sur la carte * Carte: mise en valeur du nom de l'atelier (par opposition au nom de lorganisation qui le porte) * Carte: ajout de filtres pour dimensionner comme on veut la carte +* Carte: ajout de filtres pour changer le style a la volée diff --git a/contenu/page-carte_de_sites.html b/contenu/page-carte_de_sites.html index 90c35ca..37ae6d0 100755 --- a/contenu/page-carte_de_sites.html +++ b/contenu/page-carte_de_sites.html @@ -8,6 +8,7 @@ - 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 ] @@ -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}), - minimal = new L.TileLayer(cloudmadeUrl, cloudmadeOptions, {styleId: 14189}); + minimal = new L.TileLayer(cloudmadeUrl, cloudmadeOptions, {styleId: [(#ENV{style}|sinon{'14189'})]});