[{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"tssks","theme_token":"ICjz2TXOKhrx4ugZU3DXl3W249lKphbn-bm3BArkZHc"}},"merge":true},{"command":"insert","method":"replaceWith","selector":"#div_global","data":"\u003Cdiv id=\u0022div_global\u0022 class=\u0022node-liste-container\u0022\u003E\n\n \u003Cdiv id=\u0022selector\u0022 class=\u0022isotope-item liste-affichage clearfix\u0022\u003E\n \u003Cdiv class=\u0022liste-affichage-content\u0022\u003E\n \n \u003Ca class=\u0022 affichage-miniature-bouton use-ajax\u0022\n href=\u0022\/node\/36329\/ajax\/0\/mosaique\/div_global\u0022\n title=\u0022Affichage Mosaique\u0022\n \u003E\n \u003Cspan class=\u0022sprite-ir\u0022\u003E\u003C\/span\u003E\n \u003Cspan class=\u0022h4-like\u0022\u003E\n Mosaique\n \u003C\/span\u003E\n \u003C\/a\u003E\n\n\n\n \n \u003Ca class=\u0022active affichage-map-bouton use-ajax\u0022\n href=\u0022\/node\/36329\/ajax\/0\/carte\/div_global\u0022\n title=\u0022Affichage Carte\u0022\u003E\n \u003Cspan class=\u0022sprite-ir\u0022\u003E\u003C\/span\u003E\n \u003Cspan class=\u0022h4-like\u0022\u003E\n Carte\n \u003C\/span\u003E\n \u003C\/a\u003E\n\n\n \n\n \n\n \u003C\/div\u003E\n\u003C\/div\u003E\n\n\n \u003Cul class=\u0022clearfix node-liste node-module \u0022 id=\u0022afficher_plus\u0022\u003E\n \n\u003Cscript type=\u0022text\/javascript\u0022 src=\u0022\/sites\/all\/themes\/tssks\/js\/carte-contours.js\u0022\u003E\u003C\/script\u003E\n\u003Cscript type=\u0022text\/javascript\u0022\u003E\n\nvar allmaps = allmaps || [];\n\nfunction loadGoogleAPIListe(callback)\n{\n $.getScript(\u0027http:\/\/maps.google.com\/maps\/api\/js?key=AIzaSyB9Y9zZgXDOMTKLuqel8cDuXGSAbyobGHQ\u0026async=2\u0026callback=\u0027+callback, function(){});\n}\n\nfunction initializeListe(mapID,center_lat,center_lng){\n var myLatlng = new google.maps.LatLng(center_lat,center_lng);\n\n var myOptions = {\n zoom: 4 ,\n center: myLatlng,\n scrollwheel : false,\n mapTypeId: google.maps.MapTypeId.ROADMAP,\n styles :[\n {\n \u0022featureType\u0022: \u0022administrative\u0022,\n \u0022elementType\u0022: \u0022labels.text.fill\u0022,\n \u0022stylers\u0022: [\n {\n \u0022color\u0022: \u0022#444444\u0022\n }\n ]\n },\n {\n \u0022featureType\u0022: \u0022administrative.province\u0022,\n \u0022elementType\u0022: \u0022all\u0022,\n \u0022stylers\u0022: [\n {\n \u0022visibility\u0022: \u0022on\u0022\n },\n {\n \u0022hue\u0022: \u0022#ff0000\u0022\n },\n {\n \u0022weight\u0022: \u00220.77\u0022\n },\n {\n \u0022gamma\u0022: \u00221.93\u0022\n }\n ]\n },\n {\n \u0022featureType\u0022: \u0022administrative.locality\u0022,\n \u0022elementType\u0022: \u0022all\u0022,\n \u0022stylers\u0022: [\n {\n \u0022visibility\u0022: \u0022on\u0022\n }\n ]\n },\n {\n \u0022featureType\u0022: \u0022administrative.neighborhood\u0022,\n \u0022elementType\u0022: \u0022all\u0022,\n \u0022stylers\u0022: [\n {\n \u0022visibility\u0022: \u0022off\u0022\n },\n {\n \u0022color\u0022: \u0022#ff0000\u0022\n }\n ]\n },\n {\n \u0022featureType\u0022: \u0022administrative.land_parcel\u0022,\n \u0022elementType\u0022: \u0022all\u0022,\n \u0022stylers\u0022: [\n {\n \u0022visibility\u0022: \u0022off\u0022\n }\n ]\n },\n {\n \u0022featureType\u0022: \u0022landscape\u0022,\n \u0022elementType\u0022: \u0022all\u0022,\n \u0022stylers\u0022: [\n {\n \u0022color\u0022: \u0022#f2f2f2\u0022\n },\n {\n \u0022visibility\u0022: \u0022off\u0022\n }\n ]\n },\n {\n \u0022featureType\u0022: \u0022landscape.man_made\u0022,\n \u0022elementType\u0022: \u0022all\u0022,\n \u0022stylers\u0022: [\n {\n \u0022visibility\u0022: \u0022off\u0022\n }\n ]\n },\n {\n \u0022featureType\u0022: \u0022landscape.natural\u0022,\n \u0022elementType\u0022: \u0022all\u0022,\n \u0022stylers\u0022: [\n {\n \u0022visibility\u0022: \u0022on\u0022\n }\n ]\n },\n {\n \u0022featureType\u0022: \u0022landscape.natural.landcover\u0022,\n \u0022elementType\u0022: \u0022all\u0022,\n \u0022stylers\u0022: [\n {\n \u0022visibility\u0022: \u0022off\u0022\n }\n ]\n },\n {\n \u0022featureType\u0022: \u0022poi\u0022,\n \u0022elementType\u0022: \u0022all\u0022,\n \u0022stylers\u0022: [\n {\n \u0022visibility\u0022: \u0022off\u0022\n }\n ]\n },\n {\n \u0022featureType\u0022: \u0022poi.park\u0022,\n \u0022elementType\u0022: \u0022all\u0022,\n \u0022stylers\u0022: [\n {\n \u0022visibility\u0022: \u0022off\u0022\n },\n {\n \u0022saturation\u0022: \u0022-28\u0022\n },\n {\n \u0022lightness\u0022: \u002256\u0022\n }\n ]\n },\n {\n \u0022featureType\u0022: \u0022poi.place_of_worship\u0022,\n \u0022elementType\u0022: \u0022all\u0022,\n \u0022stylers\u0022: [\n {\n \u0022visibility\u0022: \u0022off\u0022\n }\n ]\n },\n {\n \u0022featureType\u0022: \u0022road\u0022,\n \u0022elementType\u0022: \u0022all\u0022,\n \u0022stylers\u0022: [\n {\n \u0022saturation\u0022: -100\n },\n {\n \u0022lightness\u0022: 45\n }\n ]\n },\n {\n \u0022featureType\u0022: \u0022road\u0022,\n \u0022elementType\u0022: \u0022geometry\u0022,\n \u0022stylers\u0022: [\n {\n \u0022visibility\u0022: \u0022on\u0022\n }\n ]\n },\n {\n \u0022featureType\u0022: \u0022road\u0022,\n \u0022elementType\u0022: \u0022geometry.fill\u0022,\n \u0022stylers\u0022: [\n {\n \u0022visibility\u0022: \u0022off\u0022\n }\n ]\n },\n {\n \u0022featureType\u0022: \u0022road\u0022,\n \u0022elementType\u0022: \u0022labels.text\u0022,\n \u0022stylers\u0022: [\n {\n \u0022visibility\u0022: \u0022simplified\u0022\n },\n {\n \u0022color\u0022: \u0022#a39e9e\u0022\n }\n ]\n },\n {\n \u0022featureType\u0022: \u0022road.highway\u0022,\n \u0022elementType\u0022: \u0022all\u0022,\n \u0022stylers\u0022: [\n {\n \u0022visibility\u0022: \u0022on\u0022\n }\n ]\n },\n {\n \u0022featureType\u0022: \u0022road.arterial\u0022,\n \u0022elementType\u0022: \u0022all\u0022,\n \u0022stylers\u0022: [\n {\n \u0022visibility\u0022: \u0022on\u0022\n }\n ]\n },\n {\n \u0022featureType\u0022: \u0022road.arterial\u0022,\n \u0022elementType\u0022: \u0022labels.icon\u0022,\n \u0022stylers\u0022: [\n {\n \u0022visibility\u0022: \u0022off\u0022\n }\n ]\n },\n {\n \u0022featureType\u0022: \u0022transit\u0022,\n \u0022elementType\u0022: \u0022all\u0022,\n \u0022stylers\u0022: [\n {\n \u0022visibility\u0022: \u0022off\u0022\n }\n ]\n },\n {\n \u0022featureType\u0022: \u0022water\u0022,\n \u0022elementType\u0022: \u0022all\u0022,\n \u0022stylers\u0022: [\n {\n \u0022color\u0022: \u0022#71c0e0\u0022\n },\n {\n \u0022visibility\u0022: \u0022on\u0022\n }\n ]\n }\n]\n };\n\n allmaps[mapID] = new google.maps.Map(document.getElementById(mapID), myOptions);\n allmaps[mapID].ourMarkers = [];\n loadRegionCentreContours(allmaps[mapID]);\n}\n\n\/\/ Ajoute un marqueur sur la carte :\nfunction addPointListe(mapID,aLatlng,title,aContentString,iconimage,asSlider) {\n if (asSlider == undefined) asSlider=true;\n if (aLatlng.lat==\u0027\u0027||aLatlng.lng==\u0027\u0027) {return; }\n if (aLatlng.lat==0 \u0026\u0026 aLatlng.lng==0) {return; }\n var myLatlng = new google.maps.LatLng(aLatlng.lat,aLatlng.lng) ;\n\n var obj = {\n position: myLatlng,\n title:title\n }\n\n \/\/var image = \u0022\/sites\/all\/themes\/tssks\/img\/pointeur-agence.png\u0022;\n if (iconimage != undefined)\n {\n obj.icon = iconimage ;\n }\n\n var a_marker = new google.maps.Marker(obj);\n \/\/\n\n a_marker.setMap(allmaps[mapID]);\n\n var htmlContent = \u0027\u0027;\n if (asSlider){\n htmlContent = \u0027\u003Cdiv class=\u0022flex-container slider-carte-container\u0022\u003E\u003Cdiv class=\u0022slider-carte flex-slider-carte flexslider\u0022\u003E\u003Cul class=\u0022slides\u0022\u003E\u0027+aContentString+\u0027\u003C\/ul\u003E\u003C\/div\u003E\u003C\/div\u003E\u0027;\n }else{\n htmlContent = \u0027\u003Cdiv class=\u0022bubblemap-container\u0022\u003E\u0027+aContentString+\u0027\u003C\/div\u003E\u0027;\n }\n\n var infowindow = new google.maps.InfoWindow({content: htmlContent});\n google.maps.event.addListener(a_marker, \u0027click\u0027, function() {\n closeAllWindowsListe(mapID);\n infowindow.open(allmaps[mapID], a_marker);\n jQuery(\u0027.flex-slider-carte\u0027).flexslider(parent.paramSliderCarte);\n\n });\n\n allmaps[mapID].ourMarkers.push({marker:a_marker,infowin:infowindow});\n\n \/\/ map.setCenter(myLatlng);\n var bounds = new google.maps.LatLngBounds();\n for (var i=0;i\u003Callmaps[mapID].ourMarkers.length;i++){\n bounds.extend(allmaps[mapID].ourMarkers[i].marker.position);\n }\n\n var ne = bounds.getNorthEast();\n var sw = bounds.getSouthWest();\n if (ne.lat()==sw.lat() \u0026\u0026 ne.lng()==sw.lng()){\n allmaps[mapID].setCenter(ne);\n allmaps[mapID].setZoom(8);\n }else{\n allmaps[mapID].fitBounds(bounds);\n }\n\n}\n\n\/\/ Retire tous les marqueurs de la carte :\nfunction removePointsListe(mapID){\n for (var i = 0 ; i \u003C allmaps[mapID].ourMarkers.length ; i++){\n allmaps[mapID].ourMarkers[i].marker.setMap(null);\n }\n}\n\n\/\/ Ferme les fen\u00eatres ouvertes de la carte :\nfunction closeAllWindowsListe(mapID){\n console.log(allmaps);\n for (var i = 0 ; i \u003C allmaps[mapID].ourMarkers.length ; i++){\n allmaps[mapID].ourMarkers[i].infowin.setMap(null);\n }\n}\n\u003C\/script\u003E\n\n\n\u003Cli class=\u0022google-maps-container isotope-item\u0022\u003E\n \u003Cdiv id=\u0022map_canvas_liste\u0022 class=\u0022google-maps-container\u0022\u003E\u003C\/div\u003E\n\u003C\/li\u003E\n\n\u003Cscript type=\u0022text\/javascript\u0022\u003E\n function makemapListe()\n {\n initializeListe(\u0022map_canvas_liste\u0022, 47.5, 0.42);\n\n \n\n\n setTimeout(\u0022updateIsotopeDivGlobal();\u0022,50);\n\n }\n\n loadGoogleAPIListe(\u0027makemapListe\u0027);\n\u003C\/script\u003E\n\n\n\n\n \u003C\/ul\u003E\n\n \u003Cdiv id=\u0022bouton_afficher_plus\u0022\u003E\n \n \u003C\/div\u003E\n\u003C\/div\u003E\u003C!-- div_global --\u003E\n\n\n\u003Cscript type=\u0022text\/javascript\u0022\u003EsetTimeout(\u0027updateIsotopeDivGlobal();\u0027,1);\u003C\/script\u003E\n","settings":null}]