X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=contenu%2Fpage-carte_de_sites.html;h=bcb479fd69754d5404e27081bfc5ba9f27ce4de1;hb=8cff1baee651462831d9d5ba14c1f5dc4129cef3;hp=4e51b46b68c7aa24865479b3ece8c385ad097edc;hpb=edbfbbac85d7c1d525df11ef5504616461698e4f;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 4e51b46..bcb479f 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 ] @@ -46,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, @@ -93,4 +96,3 @@ ] -