Essai d’intégration de la carte »Vincent »
var el=document.getElementById(« vuvibosm »);el.style.width= »100% »;const width=parseFloat(getComputedStyle(el,null).width.replace(« px », » »));const vw=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0);const vh=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0);el.style.height=width*vh/vw+ »px »;var leafletstyle=document.createElement(« link »);leafletstyle.setAttribute(« rel », »stylesheet »);leafletstyle.setAttribute(« type », »text/css »);leafletstyle.setAttribute(« href », »https://unpkg.com/leaflet@1.6.0/dist/leaflet.css »);leafletstyle.setAttribute(« integrity », »sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ== »);leafletstyle.setAttribute(« crossorigin », » »);document.getElementsByTagName(« head »)[0].appendChild(leafletstyle);var leafletscript=document.createElement(« script »);leafletscript.setAttribute(« type », »text/javascript »);leafletscript.setAttribute(« src », »https://unpkg.com/leaflet@1.6.0/dist/leaflet.js »);leafletscript.setAttribute(« integrity », »sha512-gZwIG9x3wUXg2hdXF6+rVkLF/0Vi9U8D2Ntg4Ga5I5BZpVkVxlJWbSQtXPSiUTtC0TjtGOmxa1AJPuV0CPthew== »);leafletscript.setAttribute(« crossorigin », » »);leafletscript.onload=function(){var map=L.map(« vuvibosm »).setView([45.9864749,4.726611],13);var cyclosm=L.tileLayer(« https://dev.{s}.tile.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png »,{maxZoom:20,attribution:’CyclOSM | Map data: © OpenStreetMap contributors’});cyclosm.addTo(map)};document.getElementsByTagName(« head »)[0].appendChild(leafletscript);CyclOSM geovelo
Mettre ici la légende de la carte