\n\t\t\t\t<\/div>","center":{"type":"client","lat":"48.44391499999999","lng":"1.487991999999963","poi":""},"zoom":{"actif":"1","value":"13","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":666};eGmap.pois={"poi":[{"title":"Concert : Carmina Burana \u2013 Conservatoire","uid":"3534","lat":"48.4499067","lng":"1.4897363000000041","type":"news","table":"tx_news_domain_model_news"},{"title":"Exposition \u00ab Portraits de femmes d'Eure-et-Loir, entre ombre et lumi\u00e8re \u00bb \u2013 M\u00e9diath\u00e8que l'Apostrophe","uid":"3745","lat":"48.44533939136472","lng":"1.4832643904753695","type":"news","table":"tx_news_domain_model_news"},{"title":"Concert : Monk's Mood \u2013 Conservatoire","uid":"4307","lat":"48.4467997","lng":"1.5184123","type":"news","table":"tx_news_domain_model_news"},{"title":"Concert : carte blanche aux jeunes talents \u2013 Conservatoire","uid":"4320","lat":"48.44878759999999","lng":"1.4879957","type":"news","table":"tx_news_domain_model_news"},{"title":"Master class et concert de Ghislaine Petit-Volta \u2013 Conservatoire","uid":"4321","lat":"48.443484999999995","lng":"1.4899654999999998","type":"news","table":"tx_news_domain_model_news"},{"title":"Concert : Claviers obstin\u00e9s 1 \u2013 Conservatoire","uid":"4322","lat":"48.4467997","lng":"1.5184123","type":"news","table":"tx_news_domain_model_news"},{"title":"Concert : Claviers obstin\u00e9s 2 \u2013 Conservatoire","uid":"4323","lat":"48.4467997","lng":"1.5184123","type":"news","table":"tx_news_domain_model_news"},{"title":"Hommage \u00e0 Camille Saint-Sa\u00ebns \u2013 Conservatoire","uid":"4325","lat":"48.44878759999999","lng":"1.4879957","type":"news","table":"tx_news_domain_model_news"},{"title":"Les rencontres baroques 2021 \u2013 Conservatoire","uid":"4326","lat":"48.4444276","lng":"1.4900487","type":"news","table":"tx_news_domain_model_news"},{"title":"Concert : Trompette et orgue \u2013 Conservatoire","uid":"4327","lat":"48.4499067","lng":"1.4897363000000041","type":"news","table":"tx_news_domain_model_news"},{"title":"Concert des orchestres \u2013 Conservatoire","uid":"4328","lat":"48.442605099999994","lng":"1.4857152999999998","type":"news","table":"tx_news_domain_model_news"},{"title":"Gala des classes de danse du Conservatoire","uid":"4329","lat":"48.442605099999994","lng":"1.4857152999999998","type":"news","table":"tx_news_domain_model_news"},{"title":"Conservation de musique et de danse en f\u00eate","uid":"4330","lat":"48.443484999999995","lng":"1.4899654999999998","type":"news","table":"tx_news_domain_model_news"},{"title":"Hommage au G\u00e9n\u00e9ral Marceau","uid":"4582","lat":"48.44415528971342","lng":"1.4834495167953499","type":"news","table":"tx_news_domain_model_news"},{"title":"Journ\u00e9e nationale d\u2019hommage aux victimes du terrorisme","uid":"4583","lat":"48.447167","lng":"1.4841847499999998","type":"news","table":"tx_news_domain_model_news"},{"title":"Journ\u00e9e nationale du souvenir et de recueillement \u00e0 la m\u00e9moire des victimes civiles et militaires de la guerre d'Alg\u00e9rie et des combats en Tunisie et au Maroc","uid":"4584","lat":"48.44907983693677","lng":"1.4837604815647243","type":"news","table":"tx_news_domain_model_news"}]};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')?!1:!0,draggable:(eGmap.conf.draggable=='0')?!1:!0,zoomControl:(eGmap.conf.zoom.actif=='0')?!1:!0,zoomControlOptions:(eGmap.conf.zoom.position)?{position:google.maps.ControlPosition[eGmap.conf.zoom.position]}:{},streetViewControl:(eGmap.conf.streetview.actif=='0')?!1:!0,streetViewControlOptions:(eGmap.conf.streetview.position)?{position:google.maps.ControlPosition[eGmap.conf.streetview.position]}:{},panControl:(eGmap.conf.deplacement.actif=='0')?!1:!0,panControlOptions:(eGmap.conf.deplacement.position)?{position:google.maps.ControlPosition[eGmap.conf.deplacement.position]}:{},mapTypeControl:(eGmap.conf.type.actif=='0')?!1:!0,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:!1,rotateControl:!1,scaleControl:!1,styles:(eGmap.styles)?eGmap.styles:null});eGmapLoadPois();eGmapLoadKmls();eGmapCatInit()}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!1;if(eGmap.marker[key].infobubble){eGmap.marker[key].infobubble.close();eGmap.marker[key].infobubble=!1}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=!1});if(backend==0){jQuery.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=jQuery(result).find("key").text();tabs=jQuery(result).find("tab");if(tabs.length>0){jQuery(result).find("tab").each(function(){label=jQuery(this).find("label").text();content=jQuery(this).find("content").text();eGmap.marker[key].infobubble.addTab(label,content)})}else{content=jQuery(result).find("content").html();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=!1}})}else{jQuery.ajax({url: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=jQuery(result).find("key").text();type=jQuery(result).find("type").text();uid=jQuery(result).find("uid").text();movePoint=jQuery(result).find("movePoint").text();savePoint=jQuery(result).find("savePoint").text();editPoint=jQuery(result).find("editPoint").text();tabs=jQuery(result).find("tab");title=jQuery(result).find("title").text();content='
'+title+'
';content+='';content+='';content='
'+content+'
';eGmap.marker[key].infobubble.setContent(content);eGmap.marker[key].infobubble.updateContent_();window.setTimeout(function(){editPoi(uid,table,jQuery('#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=!1}})}}return!0}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]){jQuery('#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=jQuery('#eGmapAdress2');if(destField.length){destField.val(adresse)}return!1}function eGmapCatInit(){jQuery('.egmap_cat').click(function(){eGmapCatCheck(this)});jQuery('.egmapcat_kmls').click(function(){eGmapKmlsCheck(this)});eGmapCatCheckAllInit()}function eGmapCatCheck(elem){var infos=jQuery(elem).attr('id').split('_');var idCat=infos[1];var elem=infos[2];var input=jQuery('#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=jQuery('.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',!1);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=!1});movePoiListener=google.maps.event.addListener(eGmap,"click",function(){if(poi_move==!1){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(!1)})}function updatePoint(uid,key,type,lat,lng){jQuery.ajax({url:settings.ajaxUrls.update_poi,type:'POST',data:{uid:uid,type:type,lat:lat,lng:lng,key:key},success:function(result){eGmap.marker[key].setDraggable(!1);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,jQuery('#pageId').data('tab'))}})}}/*]]>*/Chartres - À ne pas rater