X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;ds=sidebyside;f=contenu%2Fpage-carte_de_sites.html;h=80a6c0b179d55ec577118f6fbc291bf7ff2a7c4e;hb=c1accde87fb948e5541c5ab063eb8efdd58c2c91;hp=01b55dc0294fa4df59d700e89c5016b38a7cbd76;hpb=a96cafd9a13b022465bd653aacebbc652c1abf6c;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 01b55dc..80a6c0b 100755
--- a/contenu/page-carte_de_sites.html
+++ b/contenu/page-carte_de_sites.html
@@ -10,6 +10,8 @@
- 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
]
@@ -33,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_SITE
Statut: [(#_ateliers_types:TITRE|supprimer_numero)]");
+ ]
group_#ID_MOT.addLayer(markerAtelier)