Oups
authorheureuxcyclage <heureuxcyclage@slave1.vds.lautre.net>
Wed, 23 Nov 2011 14:45:59 +0000 (15:45 +0100)
committerheureuxcyclage <heureuxcyclage@slave1.vds.lautre.net>
Wed, 23 Nov 2011 14:45:59 +0000 (15:45 +0100)
contenu/page-carte_de_sites.html~ [deleted file]

diff --git a/contenu/page-carte_de_sites.html~ b/contenu/page-carte_de_sites.html~
deleted file mode 100644 (file)
index 55380c6..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<div id="map" style="width: 540px; height: 400px"></div>
-
-
-
-       <BOUCLE_ateliers(MOTS){type = Ateliers}{!par id_mot}>
-               #URL_SITE_SPIP/IMG#LOGO_MOT**
-       </BOUCLE_ateliers>
-
-
-<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 &copy; 2011 OpenStreetMap contributors, Imagery &copy; 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');
-       
-
-       <BOUCLE_ateliers_types(MOTS){type = Ateliers}{!par id_mot}>
-                       <BOUCLE_sites(SITES){id_mot}>
-                                       <BOUCLE_coord(GIS){id_syndic}>
-                                                       siteIcon = new WorkshopIcon('#CONFIG{adresse_site}/IMG/[(#LOGO_MOT|fichier)]')
-                                                       var markerGrenoble = new L.Marker(new L.LatLng(#LAT, #LON), {icon: siteIcon});
-                                                       map.addLayer(markerGrenoble);
-                                                       markerGrenoble.bindPopup("<a href='#URL_SITE'>#NOM_SITE</a><br/>#_sites:DESCRIPTIF<br/>#ADRESSE<br/> #CODE_POSTAL #VILLE<br/><br/><em>Statut: #_ateliers_types:TITRE</em>");
-                                       </BOUCLE_coord>
-                       </BOUCLE_sites>
-       </BOUCLE_ateliers_types>
-       
-                       
-       map.on('click', onMapClick);
-       
-       var popup = new L.Popup();
-
-             function onMapClick(e) {
-                     var latlngStr = '(' + e.latlng.lat.toFixed(3) + ', ' + e.latlng.lng.toFixed(3) + ')';
-
-                     popup.setLatLng(e.latlng);
-                     popup.setContent("You clicked the map at " + latlngStr);
-                     map.openPopup(popup);
-       }                               
-       
-</script>