-<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);
-
-
-
-<BOUCLE_ateliers_types(MOTS){type = Ateliers}{par num titre}>
- <BOUCLE_sites(SITES){id_mot}>
- <BOUCLE_coord(GIS){id_syndic}>
- var WorkshopIcon = L.Icon.extend({
- iconUrl: '#CONFIG{adresse_site}/IMG/[(#LOGO_MOT|fichier)]',
- shadowUrl: '#CONFIG{adresse_site}/IMG/[(#LOGO_MOT_SURVOL|fichier)]',
- iconSize: new L.Point(25, 41),
- shadowSize: new L.Point(41, 41),
- iconAnchor: new L.Point(13, 41),
- popupAnchor: new L.Point(0, -33)
- });
- siteIcon = new WorkshopIcon()
- var markerAtelier = new L.Marker(new L.LatLng(#LAT, #LON), {icon: siteIcon});
- map.addLayer(markerAtelier);
- markerAtelier.bindPopup("<a href='#URL_SITE'>#NOM_SITE</a><br/>#_sites:DESCRIPTIF<br/>#ADRESSE<br/> #CODE_POSTAL #VILLE<br/><br/><em>Statut: [(#_ateliers_types:TITRE|supprimer_numero)]</em>");
- </BOUCLE_coord>
- </BOUCLE_sites>
-</BOUCLE_ateliers_types>
-
-
- map.on('click', onMapClick);
-
- var popup = new L.Popup();
+ var midnightCommander = new L.TileLayer(cloudmadeUrl, {styleId: 999, attribution: cloudmadeAttribution}),
+ thunderforest = new L.TileLayer('http://{s}.tile.opencyclemap.org/cycle/{z}/{x}/{y}.png', {attribution: cloudmadeAttribution}),
+ minimal = new L.TileLayer(cloudmadeUrl, {styleId: [(#ENV{style}|sinon{'14189'})], attribution: cloudmadeAttribution});
+
+ //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>
+
+ [(#ENV{boite}|!={non}|oui)
+ <INCLURE{fond=inclure/boite}{env}>
+ ]