\n\t\t\t\t<\/div>","center":{"type":"client","lat":"48.447103317750624","lng":"1.497605037109338","poi":""},"zoom":{"actif":"1","value":"12","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":454};eGmap.pois={"poi":[{"title":"Chartrexpo","uid":"4","lat":"48.452795411930275","lng":"1.516601949737555","picto":"fileadmin\/plugin\/tx_egooglemap\/google-picto-chartres-00_01.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"60"},{"title":"Biblioth\u00e8que Louis-Aragon","uid":"895","lat":"48.44723984813825","lng":"1.5182312288360436","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/mediatheques.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"55"},{"title":"Coll\u00e9giale Saint-Andr\u00e9","uid":"898","lat":"48.450199","lng":"1.4896018","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/lieux_d_exposition_et_galeries.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"57"},{"title":"Mus\u00e9e des Beaux-Arts","uid":"899","lat":"48.44886247429919","lng":"1.4880212902130552","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/musees.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"58"},{"title":"Cellier de Lo\u00ebns","uid":"900","lat":"48.448287724529735","lng":"1.4867588128975058","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/musees.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"58"},{"title":"Maison Picassiette","uid":"901","lat":"48.441972","lng":"1.5061711","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/musees.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"58"},{"title":"Conservatoire de musique et de danse","uid":"902","lat":"48.443484999999995","lng":"1.4899655000000394","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/culture_01.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"56"},{"title":"M\u00e9diath\u00e8que l'Apostrophe","uid":"903","lat":"48.44532455774553","lng":"1.4832689404754547","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/mediatheques.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"55"},{"title":"Chapelle Saint-\u00c9man","uid":"906","lat":"48.4471421","lng":"1.4900362","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/lieux_d_exposition_et_galeries.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"57"},{"title":"Les Enfants du Paradis","uid":"908","lat":"48.44213074178541","lng":"1.4891526481628716","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/cinema_01.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"59"},{"title":"\u00c9cole internationale du vitrail et du patrimoine","uid":"909","lat":"48.44680199999999","lng":"1.486902500000042","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/ecoles_d_art.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"54"},{"title":"Prieur\u00e9 Saint-Vincent","uid":"910","lat":"48.4457356","lng":"1.4901364","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/lieux_d_exposition_et_galeries.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"57"},{"title":"Maison Pour Tous de La Madeleine","uid":"1639","lat":"48.44476642877636","lng":"1.5182203232788138","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/picto_carto_mpt.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"51"},{"title":"Maison Pour Tous de Rech\u00e8vres\/La Cit\u00e9","uid":"1641","lat":"48.455059399999996","lng":"1.4803102","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/picto_carto_mpt.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"51"},{"title":"Maison Pour Tous des Bas-Menu","uid":"1642","lat":"48.4559488","lng":"1.4698069","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/picto_carto_mpt.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"51"},{"title":"Maison Pour Tous des Hauts-de-Chartres","uid":"1643","lat":"48.442845649999995","lng":"1.5107823","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/picto_carto_mpt.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"51"},{"title":"Maison Pour Tous de Saint-Ch\u00e9ron","uid":"1644","lat":"48.4472152","lng":"1.5071701000000002","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/picto_carto_mpt.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"51"},{"title":"Maison Pour Tous de Bel-Air","uid":"1645","lat":"48.4587327","lng":"1.4949917","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/picto_carto_mpt.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"51"},{"title":"Maison Pour Tous du Pont-Neuf","uid":"1710","lat":"48.45298510000001","lng":"1.4919183999999999","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/picto_carto_mpt.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"51"},{"title":"Maison Pour Tous des Comtesses","uid":"1711","lat":"48.434714549999995","lng":"1.48522985","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/picto_carto_mpt.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"51"},{"title":"Salle Doussineau","uid":"1714","lat":"48.4467997","lng":"1.5184123000000227","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/animations_05.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"60"},{"title":"Th\u00e9\u00e2tre de Chartres","uid":"1762","lat":"48.442605099999994","lng":"1.485715300000038","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/theatre_02.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"52"},{"title":"Th\u00e9\u00e2tre de Poche","uid":"1763","lat":"48.4371397","lng":"1.4947088000000122","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/theatre_02.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"52"},{"title":"Th\u00e9\u00e2tre du Seuil","uid":"1764","lat":"48.451006899999996","lng":"1.4884673000000248","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/theatre_02.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"52"},{"title":"Th\u00e9\u00e2tre Portail Sud","uid":"1765","lat":"48.447381","lng":"1.488349699999958","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/theatre_02.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"52"},{"title":"Le Kiosque","uid":"1766","lat":"48.447886066879235","lng":"1.4842526669190192","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/animations_05.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"60"},{"title":"Armoire \u00e0 bouquins","uid":"1768","lat":"48.4459028719645","lng":"1.5181518279098327","picto":"fileadmin\/user_upload\/culture\/armoire-bouquins\/armoire-bouquins-picto-chartres-ville.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"373"},{"title":"Armoire \u00e0 bouquins","uid":"1769","lat":"48.44590711126708","lng":"1.491824081614709","picto":"fileadmin\/user_upload\/culture\/armoire-bouquins\/armoire-bouquins-picto-chartres-ville.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"373"},{"title":"Maison Pour Tous des Petit-Clos","uid":"1821","lat":"48.43829480000001","lng":"1.5112561","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/picto_carto_mpt.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"51"}]};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 - Animations et loisirs