X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=contenu%2Fpage-carte_de_sites.html;h=582dd05f3b2f721a35e73c6afea42591d4454c62;hb=35ca693f509d648386bd8c2ca26faaa2ddce617e;hp=15cb7d417c7b691450ec113b1c95cd0db3bc3aaa;hpb=a7ced1001fbe206400575a7000015e167d7764d2;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 15cb7d4..582dd05 100755
--- a/contenu/page-carte_de_sites.html
+++ b/contenu/page-carte_de_sites.html
@@ -10,12 +10,11 @@
- haut = 400 : hauteur
- style = 14189 : style de carte. Voir http://maps.cloudmade.com/editor
- boite = oui : affiche la boite avec calques et types
+ - popup = oui : autoriser les popups
+ - images = oui : afficher les images
]
-
@@ -36,14 +35,9 @@
});
siteIcon = new WorkshopIcon()
var markerAtelier = new L.Marker(new L.LatLng(#LAT, #LON), {icon: siteIcon});
- markerAtelier.bindPopup("\
-
\
-
#TITRE#DESCRIPTIF\
-
\\
- #ADRESSE
#CODE_POSTAL #VILLE
\
-
#NOM_SITE - #URL_SITE\
-
Statut: [(#_ateliers_types:TITRE|supprimer_numero)]\
- ");
+ [(#ENV{popup}|!={non}|oui)
+ markerAtelier.bindPopup("[(#ENV{images}|!={non}|oui)
]
#TITRE#DESCRIPTIF[(#ENV{images}|!={non}|oui)
\]#ADRESSE
#CODE_POSTAL #VILLE
#NOM_SITE - #URL_SITEStatut: [(#_ateliers_types:TITRE|supprimer_numero)]");
+ ]
group_#ID_MOT.addLayer(markerAtelier)
@@ -86,7 +80,7 @@
var popup = new L.Popup();
function onMapClick(e) {
- var latlngStr = '(' + e.latlng.lat.toFixed(5) + ', ' + e.latlng.lng.toFixed(5) + ')';
+ var latlngStr = '(' + e.latlng.lat.toFixed(5) + ',' + e.latlng.lng.toFixed(5) + ')';
popup.setLatLng(e.latlng);
popup.setContent("Coordonnees de votre clic (Latitude, Longitude)" + latlngStr);
map.openPopup(popup);