\n\t\t\t\t<\/div>","center":{"type":"auto","lat":"45.77082417601594","lng":"4.811924546957016","poi":""},"zoom":{"actif":"","value":"2","molette":"","min":"0","max":"0","position":""},"streetview":{"actif":"","position":""},"deplacement":{"actif":"","position":""},"type":{"actif":"","defaut":"","position":""},"recherche":{"actif":"","label":""},"itineraire":{"actif":"","type":"","show":"","panel":"","label":""},"cluster":{"actif":""},"id":8};eGmap['pois'] = {"poi":[{"title":"Alg\u00e9rie","uid":"14","lat":"36.7608649","lng":"3.048983000000021","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Andorre","uid":"15","lat":"42.50641909999999","lng":"1.5213353999999981","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Belgique","uid":"16","lat":"50.8411792","lng":"4.358275700000036","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"B\u00e9nin","uid":"17","lat":"6.3702928","lng":"2.3912361999999803","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Burkina Faso","uid":"19","lat":"12.37807646043045","lng":"-1.5141744658691323","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Burundi (Cour des comptes)","uid":"20","lat":"-3.361378","lng":"29.359878200000026","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Cameroun (chambre des comptes)","uid":"22","lat":"3.8480325","lng":"11.502075200000036","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Canada","uid":"24","lat":"43.8856934","lng":"-79.37084279999999","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Cap Vert","uid":"25","lat":"14.93305","lng":"-23.513326699999993","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"CEMAC","uid":"26","lat":"12.12021825","lng":"15.057458949999955","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"C\u00f4te d'Ivoire","uid":"27","lat":"5.3599517","lng":"-4.008256299999971","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Djibouti","uid":"28","lat":"11.825138","lng":"42.59027500000002","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"France","uid":"29","lat":"48.85661400000001","lng":"2.3522219000000177","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Gabon","uid":"30","lat":"0.4161976","lng":"9.467267600000014","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Guin\u00e9e","uid":"31","lat":"9.640761139406033","lng":"-13.581685283203115","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Guin\u00e9e Bissau","uid":"32","lat":"11.8695469","lng":"-15.612323349999997","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Ha\u00efti","uid":"33","lat":"18.594395","lng":"-72.30743259999997","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Liban","uid":"34","lat":"33.8937913","lng":"35.50177669999994","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Luxembourg","uid":"35","lat":"49.6110378","lng":"6.128756199999998","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Madagascar","uid":"36","lat":"-18.578381","lng":"46.75692000000004","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Mali","uid":"37","lat":"12.617098","lng":"-7.981084499999952","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Maroc","uid":"38","lat":"33.9715904","lng":"-6.849812899999961","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Mauritanie","uid":"39","lat":"18.0735299","lng":"-15.958237199999985","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Moldavie","uid":"40","lat":"47.0133808","lng":"28.84803390000002","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Monaco","uid":"41","lat":"43.740744199999995","lng":"7.4260223","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Mozambique","uid":"42","lat":"-25.2569876","lng":"32.53727409999999","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Niger","uid":"43","lat":"13.4886443","lng":"2.1057548999999653","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Qu\u00e9bec","uid":"44","lat":"46.8154169","lng":"-71.21931740000002","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"R\u00e9publique Centrafricaine","uid":"45","lat":"4.3946735","lng":"18.558189900000002","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"R\u00e9publique du Congo","uid":"46","lat":"-4.2633597","lng":"15.242885300000012","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"R\u00e9publique D\u00e9mocratique du Congo","uid":"47","lat":"-4.4419311","lng":"15.266293099999984","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Roumanie","uid":"48","lat":"44.43044889999999","lng":"26.097934200000054","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"S\u00e9n\u00e9gal","uid":"50","lat":"14.6689323","lng":"-17.44036749999998","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Suisse (Contr\u00f4le g\u00e9n\u00e9ral des finances)","uid":"51","lat":"46.9424563","lng":"7.436150199999929","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Suisse (Contr\u00f4le des finances du Canton du Valais)","uid":"52","lat":"46.2345879","lng":"7.387349800000038","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Tchad","uid":"53","lat":"12.119727","lng":"15.024941000000013","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Togo","uid":"54","lat":"6.172496899999999","lng":"1.2313618000000588","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Tunisie","uid":"55","lat":"36.8064948","lng":"10.181531599999971","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"UEMOA","uid":"56","lat":"12.3632884","lng":"-1.5166914000000133","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"},{"title":"Union des Comores","uid":"57","lat":"-11.7172157","lng":"43.24731459999998","type":"annuaires","table":"tx_eannuaires_domain_model_fiche"}]};function eGmapLoadMap() {eGmap['map'] = new google.maps.Map(document.getElementById('eGmapMap'),{center: new google.maps.LatLng(eGmap['conf'].center.lat , eGmap['conf'].center.lng),zoom: parseInt(eGmap['conf'].zoom.value),minZoom: parseInt(eGmap['conf'].zoom.min),maxZoom: parseInt(eGmap['conf'].zoom.max),scrollwheel: (eGmap['conf'].zoom.molette == '0') ? false : true,draggable: (eGmap['conf'].draggable == '0') ? false : true,zoomControl: (eGmap['conf'].zoom.actif == '0') ? false : true,zoomControlOptions: (eGmap['conf'].zoom.position)?{position: google.maps.ControlPosition[eGmap['conf'].zoom.position]}:{},streetViewControl: (eGmap['conf'].streetview.actif == '0') ? false : true,streetViewControlOptions: (eGmap['conf'].streetview.position)?{position: google.maps.ControlPosition[eGmap['conf'].streetview.position]}:{},panControl: (eGmap['conf'].deplacement.actif == '0') ? false : true,panControlOptions: (eGmap['conf'].deplacement.position)?{position: google.maps.ControlPosition[eGmap['conf'].deplacement.position]}:{},mapTypeControl: (eGmap['conf'].type.actif == '0') ? false : true,mapTypeControlOptions: (eGmap['conf'].type.position)?{position: google.maps.ControlPosition[eGmap['conf'].type.position]}:{},mapTypeId: (eGmap['conf'].type.defaut)?google.maps.MapTypeId[eGmap['conf'].type.defaut]:google.maps.MapTypeId.ROADMAP,overviewMapControl: false,rotateControl: false,scaleControl: false,styles: (eGmap['styles'])?eGmap['styles']:null}); eGmapLoadPois(0); eGmapLoadKmls(); }function eGmapLoadKmls(){if(eGmap['kmls'] && eGmap['kmls'].kml){if(eGmap['kmls'].kml.length>0){for(i=0;i0){for(i=0;i0){eGmap['map'].setCenter(eGmap['bounds'].getCenter());}else{eGmap['map'].fitBounds(eGmap['bounds']);}}if(eGmap['conf'].forcePoi){if(eGmapLoadInfosPoi(eGmap['uidToKey'][eGmap['conf'].forcePoi], backend, '')){eGmap['map'].setCenter(eGmap['marker'][eGmap['uidToKey'][eGmap['conf'].forcePoi]].getPosition());}}}else{eGmapLoadPoi(eGmap['pois'].poi, backend);if(eGmapLoadInfosPoi(0, backend, '')){eGmap['map'].setCenter(eGmap['marker'][0].getPosition());}}}}function eGmapLoadPoi(poi, backend){key = eGmap['marker'].length;position = new google.maps.LatLng(poi.lat , poi.lng);eGmap['marker'][key] = new google.maps.Marker({position: position,title: poi.title});eGmap['marker'][key].key = key;eGmap['marker'][key].infopoi = poi;if(poi.cats){eGmap['marker'][key].cats = poi.cats.split(',');}else{eGmap['marker'][key].cats = new Array;}eGmap['marker'][key].setMap(eGmap['map']);eGmap['uidToKey'][poi.table+'_'+poi.uid] = key;if(poi.picto && poi.picto!=''){eGmap['marker'][key].setIcon('/'+poi.picto);}google.maps.event.addListener(eGmap['marker'][key], 'click', function() {eGmapLoadInfosPoi(this.key, backend, poi.table);});eGmap['bounds'].extend(position);}function eGmapLoadInfosPoi(key, backend, table){if(!eGmap['marker'][key])return false;if(eGmap['marker'][key].infobubble){eGmap['marker'][key].infobubble.close();eGmap['marker'][key].infobubble = false;}else{eGmap['marker'][key].infobubble = new InfoBubble({minHeight:100,minWidth:110,});eGmap['marker'][key].infobubble.setContent(eGmap['conf'].loadingInfo);eGmap['marker'][key].infobubble.key = key;eGmap['infoZIndex'] = (eGmap['infoZIndex'])?eGmap['infoZIndex']+1:6;eGmap['marker'][key].infobubble.setZIndex(eGmap['infoZIndex']);google.maps.event.addDomListener(eGmap['marker'][key].infobubble.bubble_, 'click', function(e){eGmap['infoZIndex']++;this.style.setProperty('z-index', eGmap['infoZIndex']);});google.maps.event.addListener(eGmap['marker'][key].infobubble, 'closeclick', function(e){eGmap['marker'][this.key].infobubble = false;});if(backend == 0){$.ajax({type: 'POST',dataType: "xml",data: {eID: 'eGmapInfoPoi',id: eGmap['conf'].id,uid: eGmap['marker'][key].infopoi.uid,type: eGmap['marker'][key].infopoi.type,key: key},success: function(result){key = $(result).find("key").text();tabs = $(result).find("tab");if(tabs.length > 0){$(result).find("tab").each(function(){label = $(this).find("label").text();content = $(this).find("content").text();eGmap['marker'][key].infobubble.addTab(label, content);});}else{content = $(result).find("content").text();eGmap['marker'][key].infobubble.setContent(content);eGmap['marker'][key].infobubble.updateContent_();}eGmap['marker'][key].infobubble.open(eGmap['map'], eGmap['marker'][key]);window.setTimeout(function() {eGmap['marker'][key].infobubble.panToView();}, 100);},error: function(error) {console.dir(error);eGmap['marker'][key].infobubble.close();eGmap['marker'][key].infobubble = false;}});} else {$.ajax({ url: TYPO3.settings.ajaxUrls['info_poi_backend'],type: 'POST',dataType: "xml",data: {id: eGmap['conf'].id,uid: eGmap['marker'][key].infopoi.uid,type: eGmap['marker'][key].infopoi.type,key: key},success: function(result){key = $(result).find("key").text(); type = $(result).find("type").text();uid = $(result).find("uid").text();movePoint = $(result).find("movePoint").text();savePoint = $(result).find("savePoint").text();editPoint = $(result).find("editPoint").text();tabs = $(result).find("tab");title = $(result).find("title").text();/*if(tabs.length > 0){$(result).find("tab").each(function(e){label = $(this).find("label").text();content = $(this).find("content").text();if(e == 0){content += '';}eGmap['marker'][key].infobubble.addTab(label, content);});}else{content = $(result).find("content").html();content += ''; eGmap['marker'][key].infobubble.setContent(content);eGmap['marker'][key].infobubble.updateContent_();}*/ content = ''+title+'
';content += '';content += '';content = ''+content+'
';eGmap['marker'][key].infobubble.setContent(content);eGmap['marker'][key].infobubble.updateContent_();window.setTimeout(function() {editPoi(uid, table, $('#pageId').data('tab'));}, 100);eGmap['marker'][key].infobubble.open(eGmap['map'], eGmap['marker'][key]); window.setTimeout(function() {eGmap['marker'][key].infobubble.panToView();}, 100);},error: function(error) {console.dir(error);eGmap['marker'][key].infobubble.close();eGmap['marker'][key].infobubble = false;}});}}return true;}google.maps.event.addDomListener(window, 'load', eGmapLoadMap);function eGmapWizardSetAdress(){ if(eGmap['boundResultMarker']){ eGmap['geocoder'].geocode( { 'latLng': eGmap['boundResultMarker'].getPosition()}, function(results, status) { if (status == google.maps.GeocoderStatus.OK && results[0]) { $('#eGmapAdress').val(results[0].formatted_address);}});}}function eGmapYAller(lat, lng, adresse){if(eGmap['directionsService']){maDestination = new google.maps.LatLng(lat, lng);if(navigator.geolocation) {navigator.geolocation.getCurrentPosition(function(position) {var type = '';type = type?google.maps.TravelMode[type]:null;var maPosition = new google.maps.LatLng(position.coords.latitude,position.coords.longitude);var request = {origin: maPosition,destination: maDestination,travelMode: type};eGmap['directionsService'].route(request, function(response, status) {if (status == google.maps.DirectionsStatus.OK) {eGmap['directionsDisplay'].setDirections(response);}});});}}destField = $('#eGmapAdress2');if(destField.length){destField.val(adresse);}return false;}function eGmapCatInit(){$('.egmap_cat').click(function(){eGmapCatCheck(this);});$('.egmapcat_kmls').click(function(){eGmapKmlsCheck(this);});$('.egmap_cat_racine').click();eGmapCatCheckAllInit();}function eGmapCatCheck(elem){var infos = $(elem).attr('id').split('_');var idCat = infos[1];var elem = infos[2];var input = $('#egmapcat_'+idCat+'_input');var checked = input.prop('checked');if(elem != 'input'){input.prop('checked', !checked);}else{checked = !checked;}for(var i=0;i= 0){if(checked && eGmapIsNoLastCat(poi)){eGmapHidePoi(poi);}else{eGmapShowPoi(poi);}}}var childs = $('.egmap_child_'+idCat);if(childs.length){childs.prev().prop('checked', checked);childs.click();}}function eGmapIsNoLastCat(poi){for(var i=0;i ul.cats > li > div input:checkbox').click(); thisButton.val(checkAll).removeClass('allchecked').addClass('allunchecked'); }else{ jQuery('ul.cats input:checkbox').prop('checked',false); jQuery('div > ul.cats > li > div input:checkbox').click(); thisButton.val(uncheckAll).addClass('allchecked').removeClass('allunchecked'); } });}function eGmapPoiListeInit() {google.maps.event.addListener(eGmap['map'], 'bounds_changed', function(e) {var mapBounds = eGmap['map'].getBounds();for(var i=0;i'; eGmap['marker'][indexBulle].infobubble.setContent(content);eGmap['marker'][indexBulle].infobubble.open();poi_move = false;}); movePoiListener = google.maps.event.addListener(eGmap, "click", function() {if(poi_move == false) {undoLatLng(gmarkers[uid], indexBulle, uid);google.maps.event.removeListener(movePoiListener);}}); google.maps.event.addListener(eGmap['marker'][indexBulle].infobubble, 'closeclick', function(e){ eGmap['marker'][indexBulle].setPosition(initialPosition); eGmap['marker'][indexBulle].setAnimation(null);eGmap['marker'][indexBulle].setDraggable(false);});}function updatePoint(uid, key, type, lat, lng) { $.ajax({ url: TYPO3.settings.ajaxUrls['update_poi'], type: 'POST', data: { uid: uid,type: type, lat: lat,lng: lng, key: key }, success: function(result){ eGmap['marker'][key].setDraggable(false); eGmap['marker'][key].setAnimation(null); eGmap['marker'][key].infobubble.close(); google.maps.event.addListener(eGmap['marker'][key], 'click', function() { eGmapLoadInfosPoi(this.key, 1, ''); }); }, error: function(error) { console.dir(error); } });}function eGmapSetLocalizedPoi(){if(eGmap['boundResultMarker']){ eGmap['geocoder'].geocode( { 'latLng': eGmap['boundResultMarker'].getPosition()}, function(results, status) { if (status == google.maps.GeocoderStatus.OK && results[0]) {newPoi(eGmap['boundResultMarker'].getPosition().lat(),eGmap['boundResultMarker'].getPosition().lng(),results[0]['address_components']['0']['long_name'],results[0]['address_components']['1']['long_name'],results[0]['address_components']['4']['long_name'],results[0]['address_components']['5']['long_name'],$('#pageId').data('tab'));}});}}/*]]>*/AISCCUF - Les institutions membres Les institutions membres