X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fspip_carte_de_sites.git;a=blobdiff_plain;f=contenu%2Fpage-carte_de_sites.html;fp=contenu%2Fpage-carte_de_sites.html;h=fbe71491c8464e49c6b5b87933316a1894a59b05;hp=4b707342f41c8e752b2ef79eca930b14eda0916e;hb=df74599d4b1961822beb129f131e3b3173c7fd6f;hpb=d3ef55e09720e1858e418b8f4664e3e8ff1d740b diff --git a/contenu/page-carte_de_sites.html b/contenu/page-carte_de_sites.html index 4b70734..fbe7149 100755 --- a/contenu/page-carte_de_sites.html +++ b/contenu/page-carte_de_sites.html @@ -2,6 +2,7 @@ Modele carte_de_site Parametres : + - fullscreen = non : afficher ou ne pas afficher le contrôle fullscreen - legende = oui : afficher ou ne pas afficher la légende - lat = 46.8 : latitude du centre de la carte - lon = 2.52 : longitude du centre de la carte @@ -62,7 +63,9 @@ //Construction de la carte var map = new L.Map('map'); map.setView(new L.LatLng([(#ENV{lat}|sinon{'46.8'})],[(#ENV{lon}|sinon{'2.52'})]),[(#ENV{zoom}|sinon{5})]).addLayer(thunderforest); - map.addControl(new L.Control.FullScreen()); + [(#ENV{fullscreen}|oui) + map.addControl(new L.Control.FullScreen()); + ] //Ajout des marqueurs