X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=contenu%2Fpage-carte_de_sites.html;h=7406c3240bb62eea7d81ad0f921806654ce07854;hb=5be8b5141498264f41e876d3c116c9ef1f30c045;hp=81f1c9274e33222cd9d5f849f781960e5fb25a98;hpb=fc9ca340f2af33503f0bfc6f172324c181dd2a78;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 81f1c92..7406c32 100755
--- a/contenu/page-carte_de_sites.html
+++ b/contenu/page-carte_de_sites.html
@@ -4,6 +4,8 @@
Parametres :
- legende = non : ne pas afficher la legende
+ - coord = 46.8,2.52 : pour un centrage optimal sur la carte de France
+ - zoom = 5 : pour un centrage optimal sur la carte de France
]
@@ -25,7 +27,14 @@
});
siteIcon = new WorkshopIcon()
var markerAtelier = new L.Marker(new L.LatLng(#LAT, #LON), {icon: siteIcon});
- markerAtelier.bindPopup("
#NOM_SITE
#DESCRIPTIF
#ADRESSE
#CODE_POSTAL #VILLE
[(#URL_SITE)]
Statut: [(#_ateliers_types:TITRE|supprimer_numero)]");
+ markerAtelier.bindPopup("\
+
\
+ #TITRE
#DESCRIPTIF\
+ \
\
+ #ADRESSE
#CODE_POSTAL #VILLE
\
+ #NOM_SITE - #URL_SITE
\
+ Statut: [(#_ateliers_types:TITRE|supprimer_numero)]\
+ ");
group_#ID_MOT.addLayer(markerAtelier)
@@ -39,9 +48,10 @@
minimal = new L.TileLayer(cloudmadeUrl, cloudmadeOptions, {styleId: 14189});
-
- var map = new L.Map('map', {center: new L.LatLng(46.8, 2.52), zoom: 5, layers: [ group_#ID_MOT, midnightCommander, minimal]});
-
+
+ var map = new L.Map('map', {center: new L.LatLng([(#ENV{coord}|sinon{'46.8,2.52'})]), zoom: [(#ENV{zoom}|sinon{5})], layers: [ group_#ID_MOT, midnightCommander, minimal]});
+
+
var baseMaps = {
"Vue de nuit ;-)": midnightCommander,
@@ -86,4 +96,3 @@
]
-