From: Ludovic CHEVALIER Date: Mon, 27 Feb 2012 14:48:54 +0000 (+0100) Subject: Affichage optionnel des images dans les popups X-Git-Tag: v0.5~8 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fspip_carte_de_sites.git;a=commitdiff_plain;h=c1accde87fb948e5541c5ab063eb8efdd58c2c91;hp=a96cafd9a13b022465bd653aacebbc652c1abf6c Affichage optionnel des images dans les popups --- 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)