X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=contenu%2Fpage-carte_de_sites.html;h=873cf168de9ceb46b0cfbbbbb5b8e18b1e077a2c;hb=dbe664b0f450c8a656ceb12b4893a251f36bf7ac;hp=9ea7fa369f194047ce18cb82f0e4394f465b03a1;hpb=fa526bd1a544c94a9c66e37bbb9357749b2358e4;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 9ea7fa3..873cf16 100755 --- a/contenu/page-carte_de_sites.html +++ b/contenu/page-carte_de_sites.html @@ -15,6 +15,8 @@ - lien = oui : Lien automatique vers la grande carte - iframe = oui : Afficher ou non le lien vers le code iframe - loc = non : Afficher ou non le popup de localisation + - champ_lat : Prend l'identifiant d'une balise html en argument. Change la valeur (value) de cette balise par la latitude cliquee + - champ_lon : Prend l'identifiant d'une balise html en argument. Change la valeur (value) de cette balise par la longitude cliquee ] @@ -46,7 +48,7 @@ - var cloudmadeAttribution = 'Map data © 2011 OpenStreetMap contributors, Imagery © 2011 CloudMade
[(#ENV{lien}|!={non}|oui)(Voir la carte en plus grand)]', + var cloudmadeAttribution = 'Map data © 2011 OpenStreetMap contributors, Imagery © 2011 CloudMade
[(#ENV{lien}|!={non}|oui)(<:carte_de_sites:grande_carte:>)]', cloudmadeOptions = {maxZoom: 18, attribution: cloudmadeAttribution}, cloudmadeUrl = 'http://{s}.tile.cloudmade.com/BC9A493B41014CAABB98F0471D759707/{styleId}/256/{z}/{x}/{y}.png'; @@ -73,10 +75,8 @@ var popup = new L.Popup(); function onMapClick(e) { - 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); + document.getElementById("#ENV{champ_lat}").value=e.latlng.lat.toFixed(18); + document.getElementById("#ENV{champ_lon}").value=e.latlng.lng.toFixed(18); } ] @@ -90,7 +90,7 @@ [(#ENV{legende}|!={non}|oui) -

Legende

+

<:carte_de_sites:legende:>

] [(#ENV{legende}|!={non}|oui)