\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":754};eGmap.pois={"poi":[{"title":"1, 2, 3, Petis Pas","uid":"1669","lat":"48.4453169","lng":"1.5194696","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/petite_enfance_03.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"153"},{"title":"Graine d'Eveil","uid":"1670","lat":"48.4385147","lng":"1.5096775","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/petite_enfance_03.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"153"},{"title":"Les Hauts de Chartres","uid":"1671","lat":"48.4426814","lng":"1.5107075","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/petite_enfance_03.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"153"},{"title":"Les Diablotins","uid":"1672","lat":"48.4434229","lng":"1.5169447","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/petite_enfance_06.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"156"},{"title":"La Maison du Castor","uid":"1673","lat":"48.457811","lng":"1.4933868","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/petite_enfance_06.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"156"},{"title":"La Ronde Enfantine","uid":"1674","lat":"48.4427694","lng":"1.4830561","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/petite_enfance_04.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"155"},{"title":"La Maison des Enfants","uid":"1675","lat":"48.4426814","lng":"1.5107075","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/petite_enfance_02.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"200"},{"title":"L'\u00eelot C\u00e2lin","uid":"1676","lat":"48.4437591","lng":"1.4856701","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/petite_enfance_06.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"156"},{"title":"La Farandole","uid":"1677","lat":"48.4345","lng":"1.4857","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/petite_enfance_06.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"156"},{"title":"Les Lutins","uid":"1678","lat":"48.4385394","lng":"1.5096238","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/petite_enfance_06.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"156"},{"title":"Le Jardin des Poussins","uid":"1728","lat":"48.443438","lng":"1.516874","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/petite_enfance_05.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"154"},{"title":"Haut Comme 3 Pommes","uid":"1729","lat":"48.4240108","lng":"1.5082686","picto":"fileadmin\/plugin\/tx_dcdgooglemap\/petite_enfance_06.png","type":"Poi","table":"tx_egmap_domain_model_poi","cats":"156"}]};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 - Petite enfance