PageSourceSearch

https://www.saint-gildas-de-rhuys.fr/wp-content/cache/min/1/wp-con…/js/osm/scripts.js?ver=1761114180

js saint-gildas-de-rhuys.fr collected 2026-10-02 12:24:45 UTC 4,811 bytes, 15 lines download raw bytes

1let $map=document.querySelector("#map");let cluster;class LeafletMap{constructor(){this.map=null;this.bounds=[]}
2async remove(element){return new Promise((resolve,reject)=>{this.map.remove();resolve()})}
3async load(element){return new Promise((resolve,reject)=>{this.map=L.map(element);L.tileLayer("https://{s}.tile.openstreetmap.fr/openriverboatmap/{z}/{x}/{y}.png",{attribution:'© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> - Par <a href="https://www.a3web.fr" target="_blank">A3 WEB</a>',}).addTo(this.map);resolve()})}
4addMarker(lat,lng,text,categ,infos){let point=[lat,lng];this.bounds.push(point);return new LeafletMarker(point,text,this.map,categ,infos)}
5center(){this.map.fitBounds(this.bounds)}
6centerMap(bounds){this.map.fitBounds(bounds)}
7removeLayerMarker(cluster){this.map.removeLayer(cluster)}
8leafletMarkerCluster(cluster){this.map.addLayer(cluster)}}
9class LeafletMarker{constructor(point,text,map,categ,infos){var popup='<div class="contentMarker" >'+'<div class="hautmarker">'+'<span class="titremarker">'+infos.titre+"</span>"+'<p class="soustitremarker">| '+infos.categorie+"</p>"+'<p class="adresse" >'+infos.rue+", "+infos.ville+"</p>"+'<p class="mail" ><a href="mailto:'+infos.email+'">'+infos.email+"</a></p>"+'<p class="tel" ><a href="tel:'+infos.tel+'">'+infos.tel+"</a></p>"+"</div>"+'<div class="imgPopup">'+'<img src="'+infos.miniature+'" alt="">'+"</div>"+'<div class="droiteMarker">'+'<span class="voirMarker btnbas">'+'<span class="imgFicheMarker"></span>'+'<a href="'+infos.lien+'" target="_blank">Voir fiche</a>'+"</span>"+"</div>"+"</div>";if(categ==null){if(text&&text!==" "){this.marker=cluster.addLayer(L.marker(point).bindPopup(popup).openPopup())}else{this.marker=cluster.addLayer(L.marker(point))}}else{if(text&&text!==" "){this.marker=cluster.addLayer(L.marker(point,{icon:this.customIcon(categ[0])}).bindPopup(popup).openPopup())}else{this.marker=cluster.addLayer(L.marker(point,{icon:this.customIcon(categ[0])}))}}}
10customIcon(categ){let myIcon=L.icon({iconUrl:a3webAnnuaire.pluginDirUrl+"pictos/"+categ+".svg",iconAnchor:[20,39],popupAnchor:[-3,-40],className:categ,});return myIcon}}
11let page=1;var map;var ref=jQuery("#categ").attr("ref");const initMap=async function(){let markers;initPage(function(output){markers=output;map=new LeafletMap();map.load($map);nb=0;cluster=L.markerClusterGroup({animateAddingMarkers:!0});for(let i=0;i<markers.length;i++){if(Array.isArray(markers[i][0].categorie)==!1){let markersCateg=markers[i][0].categorie.split(",");if(markers[i][0].latitude!=""){let marker=map.addMarker(markers[i][0].latitude,markers[i][0].longitude,markers[i][0].titre,markersCateg,markers[i][0])}
12if(isCarteListe==1){nb=nb+1;fullListe(markers[i][0],nb)}}else{console.log(markers[i][0]);if(markers[i][0].latitude!=""){let marker=map.addMarker(markers[i][0].latitude,markers[i][0].longitude,markers[i][0].titre,null,markers[i][0])}
13if(isCarteListe==1){nb=nb+1;fullListe(markers[i][0],nb)}}}
14map.leafletMarkerCluster(cluster);map.center();jQuery("#precedent").css("display","none");if(nb<=page*10){jQuery("#suivant").css("display","none")}else{jQuery("#suivant").css("display","block")}
15jQuery("#inputAdress").change(function(){jQuery("#precedent").css("display","none");let page=1;let categ=jQuery("#categ").attr("ref");let types=jQuery("#typebtn").attr("ref");let adress=jQuery("#inputAdress").val();let motCle=jQuery("#itemAnnuaire").val();reloadMarker(categ,types,adress,motCle);if(nb<=page*10){jQuery("#suivant").css("display","none")}else{jQuery("#suivant").css("display","block")}});jQuery("#itemAnnuaire").change(function(){jQuery("#precedent").css("display","none");let page=1;let categ=jQuery("#categ").attr("ref");let types=jQuery("#typebtn").attr("ref");let adress=jQuery("#inputAdress").val();let motCle=jQuery("#itemAnnuaire").val();reloadMarker(categ,types,adress,motCle);if(nb<=page*10){jQuery("#suivant").css("display","none")}else{jQuery("#suivant").css("display","block")}});jQuery("#liste").click(function(){jQuery("#precedent").css("display","none");let page=1;let categ=jQuery("#categ").attr("ref");let types=jQuery("#typebtn").attr("ref");let adress=jQuery("#inputAdress").val();let motCle=jQuery("#itemAnnuaire").val();reloadMarker(categ,types,adress,motCle);if(nb<=page*10){jQuery("#suivant").css("display","none")}else{jQuery("#suivant").css("display","block")}});jQuery("#vignette").click(function(){jQuery("#precedent").css("display","none");let page=1;let categ=jQuery("#categ").attr("ref");let types=jQuery("#typebtn").attr("ref");let adress=jQuery("#inputAdress").val();let motCle=jQuery("#itemAnnuaire").val();reloadMarker(categ,types,adress,motCle);if(nb<=page*10){jQuery("#suivant").css("display","none")}else{jQuery("#suivant").css("display","block")}})})};if($map!=null){initMap()}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.