カードを表示しますカードを非表示にします
‘//]: [
// ”,
// ‘‘,
// ”
// ]; Visual = nullでした。 if(loc.tag_type === ‘agence coobbold’){visual = [
”
]; } else if(loc.tag_type === ‘agence-thermomix’){visuel = [
”
]; } else {visual = [
”
]; } infos = [
‘
‘,
” + capitalize(type) + ‘ de ‘ + loc.title + ”,
]; var bottons = {choice: ‘this this’ + type + ”、sheet:(loc.page && loc.page.published)? ( ‘ +’ + type feature + ”): ”}; varアクション= [buttons.choix, buttons.fiche, ‘
‘];終了= [”]; HTML.CONCATを返します(オープニング、ビジュアル、情報、アクション、エンディング)。参加する (””); } / ** *ツールチップで代理店の選択を返す関数 * * @param Agency * / siteasing = function(agency){var agencyselected = agencies.filter(function(a){return a.id === ondeer;})。シフト (); var data = {city:agencyselected.codepostal + ” + agencyselected.ville、lat:agencyselected.lat、lng:agencyselected.lng}; getevenues( ‘location、data、true、agency); }; / ** *ツールチップから代理店ページへのリダイレクト * * @param slug * @param type */ redirecting = function(slug、type){window.location.href = ” + type +” + slug; }; / ** *代理店に従ってマップ上のすべてのマーカーを返します */ createmarkers = function(){var Rental []; MarkerSlatlng =でした []; locationhtml = nullでした。 markhtml = nullでした。ポップアップ= nullでした。境界= nullでした。 Markericont = ‘はmarkericonk =’ was markersearcht = ‘はmarkersearchkk =’ was markerboutique = “was markericonsize = ‘でした [32, 42]; var icont = l.icon({iconurl:markericont、iconsize:markericonsize}); var iconk = l.icon({iconurl:markericonk、iconsize:markericonsize}); var iconsearcht = l.icon({iconurl:markersearcht、iconsize:markericonsize}); var iconsearchk = l.icon({iconurl:markersearchk、iconsize:markericonsize}); var iconboutique = l.icon({iconurl:markerboutique、iconsize:markericonsize}); // GESTION DES MARQUEURS MarkerScluster = new L.MarkerClusterGroup(); $ .each(agences、function(key、loc){locationhtml = $( ‘#agence-‘ + loc.id); if(locationhtml.length){locationhtml.data( ‘loc’、loc); locationelements.push(locationhtml);} // —– markerhtml = getTolocationhtml(loc); Popup = l.popup( ‘closebutton’:autopanpadding ‘:l.point(15、15)}) 「Agence-Kobold」){Iconshow = ICONSHOW = ICONBoutique;[loc.id] = new L.Marker(latlng、{‘id’:loc.id、 ‘icon’:iconshow})。bindpopup(popup); var iconsearchshow = null; if(loc.tag_type === “agence-thermomix”){iconsearchshow = iconsearcht; } else if(loc.tag_type === “agence-kobold”){iconsearchshow = iconsearchk; } else {iconsearchshow = iconboutique; } // ouverture de la tooltip auクリックSUR UNマーカーマーカー[loc.id].on( ‘click’、function(e){mapelement.stop();マーカー[loc.id].seticon(iconsearchshow); this.openpopup(); }); mapelement.on( ‘popupclose’、function(e){マーカー[loc.id].seticon(iconshow); }); MarkerSlatlng.push(マーカー[loc.id]._latlng); MarkerScruster.Addlayer(マーカー[loc.id]); }); //mapelement.addlayer(markerscluster); if(markerslatlng.length && markerslatlng.length
#アテリエのヴォルワーク