X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=contenu%2Fpage-carte_de_sites.html;h=cdd9b62e80c66cf40283bb84410df869f7602e7b;hb=60e87507e2a59d26c5cd677adab7b52e7b7b354d;hp=58178df982d481a05a27a0677d43be68a5ab0775;hpb=1a4ac3b93573b3d544ca8a79cc02e2a2310dc4eb;p=lhc%2Fweb%2Fspip_carte_de_sites.git diff --git a/contenu/page-carte_de_sites.html b/contenu/page-carte_de_sites.html index 58178df..cdd9b62 100644 --- a/contenu/page-carte_de_sites.html +++ b/contenu/page-carte_de_sites.html @@ -29,32 +29,26 @@ 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'); - - - - - - 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("#NOM_SITE
#_sites:DESCRIPTIF
#ADRESSE
#CODE_POSTAL #VILLE

Statut: [(#_ateliers_types:TITRE|supprimer_numero)]"); - - - + + + + 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("#NOM_SITE
#_sites:DESCRIPTIF
#ADRESSE
#CODE_POSTAL #VILLE

Statut: [(#_ateliers_types:TITRE|supprimer_numero)]"); + + + map.on('click', onMapClick);