Ombres basees sur le logo de survol
[lhc/web/spip_carte_de_sites.git] / contenu / page-carte_de_sites.html
index e9bac23..cdd9b62 100644 (file)
@@ -1,12 +1,24 @@
 <div id="map" style="width: 540px; height: 400px"></div>
 
 
 <div id="map" style="width: 540px; height: 400px"></div>
 
 
-<strong>Legende</strong><br/>
-       <BOUCLE_legende(MOTS){type = Ateliers}{par num titre}>
-               <p>#LOGO_MOT [(#TITRE|supprimer_numero)]</p>
-       </BOUCLE_legende>
+<h2 class='h2 spip'>Legende</h2>
+<BOUCLE_legende(MOTS){type = Ateliers}{par num titre}>
+       <p>#LOGO_MOT [(#TITRE|supprimer_numero)]</p>
+</BOUCLE_legende>
 
 
 
 
+
+<h2 class='h2 spip'>Ateliers</h2>
+<BOUCLE_liste_pays(GIS){par pays}{fusion pays}>
+       <h3 class='h3 spip'>#PAYS</h3>
+               <BOUCLE_liste_region(GIS){par region}{pays}{fusion region}>
+                       <h4 class='h4 spip'>#REGION</h4>
+                               <BOUCLE_liste_ateliers(GIS){par ville}{region}>
+                                       <li>#VILLE (#CODE_POSTAL) #TITRE - #ADRESSE</li>
+                               </BOUCLE_liste_ateliers>
+               </BOUCLE_liste_region>
+</BOUCLE_liste_pays>   
+
 <script src="#CONFIG{adresse_site}/lib/CloudMade-Leaflet-404b097/dist/leaflet.js"></script>
 <script>
        var map = new L.Map('map');
 <script src="#CONFIG{adresse_site}/lib/CloudMade-Leaflet-404b097/dist/leaflet.js"></script>
 <script>
        var map = new L.Map('map');
        
        map.setView(new L.LatLng(46.8, 2.52), 5).addLayer(cloudmade);
   
        
        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 num titre}>
-                       <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|supprimer_numero)]</em>");
-                                       </BOUCLE_coord>
-                       </BOUCLE_sites>
-       </BOUCLE_ateliers_types>
+<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);
        
                        
        map.on('click', onMapClick);