Fond de carte minimal par defaut
authorLudovic CHEVALIER <l.chevalier@lespetitsdebrouillards-ra.org>
Sat, 17 Dec 2011 05:29:38 +0000 (06:29 +0100)
committerLudovic CHEVALIER <l.chevalier@lespetitsdebrouillards-ra.org>
Sat, 17 Dec 2011 05:29:38 +0000 (06:29 +0100)
TODO
contenu/page-carte_de_sites.html
test.html

diff --git a/TODO b/TODO
index d677a79..cc9508a 100644 (file)
--- a/TODO
+++ b/TODO
@@ -4,5 +4,5 @@
 * Faire en sorte qu'on puisse afficher des mini-cartes centrées comme il faut sur la page de chaque site syndiqué
 * Prévoir un "iframe" permettant l'inclusion de la carte dans d'autres sites
 * Prévoir une sortie pdf/imprimante de la carte en fonction de filtres (zoom, centrage, types d'ateliers, ...)
-
+* Prévoir un fond de carte spécial vélo par défaut (mise en évidence des voies cyclables)
 
index 6b9265a..8c12851 100644 (file)
@@ -1,9 +1,6 @@
 <div id="map" style="width: 540px; height: 400px">
 <script src="#CONFIG{adresse_site}/lib/CloudMade-Leaflet-50a5790/dist/leaflet.js"></script>
 
-
-
-
 <script>
 <BOUCLE_ateliers_types(MOTS){type = Ateliers}{par num titre}>
                var group_#ID_MOT = new L.LayerGroup();
                cloudmadeOptions = {maxZoom: 18, attribution: cloudmadeAttribution},    
                cloudmadeUrl = 'http://{s}.tile.cloudmade.com/BC9A493B41014CAABB98F0471D759707/{styleId}/256/{z}/{x}/{y}.png';
                
-       var minimal = new L.TileLayer(cloudmadeUrl, cloudmadeOptions, {styleId: 22677}),
-               midnightCommander = new L.TileLayer(cloudmadeUrl, cloudmadeOptions, {styleId: 999}),
-               motorways = new L.TileLayer(cloudmadeUrl, cloudmadeOptions, {styleId: 46561});
+       var midnightCommander = new L.TileLayer(cloudmadeUrl, cloudmadeOptions, {styleId: 999}),
+               minimal = new L.TileLayer(cloudmadeUrl, cloudmadeOptions, {styleId: 22677});
+               
 
 <B_map>
-       var map = new L.Map('map', {center: new L.LatLng(46.8, 2.52), zoom: 5, layers: [<BOUCLE_map(MOTS){type = Ateliers}>     group_#ID_MOT,</BOUCLE_map>     minimal, midnightCommander, motorways]});
+       var map = new L.Map('map', {center: new L.LatLng(46.8, 2.52), zoom: 5, layers: [<BOUCLE_map(MOTS){type = Ateliers}>     group_#ID_MOT,</BOUCLE_map>     midnightCommander, minimal]});
 </B_map>
 
        var baseMaps = {
-                               "Night View": midnightCommander,                                
-                               "Minimal": minimal
+                               "Vue de nuit ;-)": midnightCommander,                           
+                               "Vue de jour": minimal
                        };
 
 <B_groups>
        var overlayMaps = {     
                <BOUCLE_groups(MOTS){type = Ateliers}{par num titre}>
                        "[(#TITRE|supprimer_numero)]": group_#ID_MOT,</BOUCLE_groups>
-                       "Motorways": motorways
        };
 </B_groups>
 
index 661bacd..d9b06bc 100644 (file)
--- a/test.html
+++ b/test.html
@@ -1,2 +1,2 @@
-[(#REM) Carte des ateliers ]
+[(#REM) Carte des ateliers habillée ]
 <INCLURE{fond=structure}{env}{type=page}{composition=carte_de_sites} />
\ No newline at end of file