-<script src="#CONFIG{adresse_site}/lib/CloudMade-Leaflet-404b097/dist/leaflet.js"></script>
-<script>
- var map = new L.Map('map');
-
- var cloudmadeUrl = 'http://{s}.tile.cloudmade.com/BC9A493B41014CAABB98F0471D759707/997/256/{z}/{x}/{y}.png',
- cloudmadeAttribution = 'Map data © 2011 OpenStreetMap contributors, Imagery © 2011 CloudMade',
- cloudmade = new L.TileLayer(cloudmadeUrl, {maxZoom: 18, attribution: cloudmadeAttribution});
-
- map.setView(new L.LatLng(46.8, 2.52), 5).addLayer(cloudmade);
-
- var WorkshopIcon = L.Icon.extend({
- iconUrl: '#CONFIG{adresse_site}/plugins/carte-de-sites/images/grey.png',
- shadowUrl: '#CONFIG{adresse_site}/lib/CloudMade-Leaflet-404b097/dist/images/marker-shadow.png',
- iconSize: new L.Point(25, 41),
- shadowSize: new L.Point(41, 41),
- iconAnchor: new L.Point(13, 41),
- popupAnchor: new L.Point(0, -33)
- });
-
- var greyIcon = new WorkshopIcon()
- redIcon = new WorkshopIcon('#CONFIG{adresse_site}/plugins/carte-de-sites/images/red.png'),
- yellowIcon = new WorkshopIcon('#CONFIG{adresse_site}/plugins/carte-de-sites/images/yellow.png'),
- blueIcon = new WorkshopIcon('#CONFIG{adresse_site}/plugins/carte-de-sites/images/blue.png'),
- greenIcon = new WorkshopIcon('#CONFIG{adresse_site}/plugins/carte-de-sites/images/green.png');
-
+ var midnightCommander = new L.TileLayer(cloudmadeUrl, cloudmadeOptions, {styleId: 999}),
+ thunderforest = new L.TileLayer('http://{s}.tile.opencyclemap.org/cycle/{z}/{x}/{y}.png', cloudmadeOptions),
+ minimal = new L.TileLayer(cloudmadeUrl, cloudmadeOptions, {styleId: [(#ENV{style}|sinon{'14189'})]});
+
+ //Construction de la carte
+ var map = new L.Map('map');
+ map.setView(new L.LatLng([(#ENV{lat}|sinon{'46.8'})],[(#ENV{lon}|sinon{'2.52'})]),[(#ENV{zoom}|sinon{5})]).addLayer(thunderforest);
+
+ //Ajout des marqueurs
+ <BOUCLE_map(MOTS){type = (#ENV{groupe})}{!par num titre}>
+ map.addLayer(group_#ID_MOT);
+ </BOUCLE_map>