/************************************************* * Created with GoogleMapAPI3.0beta * Author: Brad Wedell * Link http://code.google.com/p/phpgooglemapapiv3/ * Copyright 2010 Brad Wedell * Original Author: Monte Ohrt * Original Copyright 2005-2006 New Digital Group * Originial Link http://www.phpinsider.com/php/code/GoogleMapAPI/ *************************************************/ var markersmap_recherche=[];var markerClusterermap_recherche=null;var to_htmlsmap_recherche=[];var from_htmlsmap_recherche=[];var iconmap_recherche=[];iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png']={};iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image=new google.maps.MarkerImage('https://www.gitedegroupe.fr/img/logo_carte_23.png',new google.maps.Size(22,25),new google.maps.Point(0,0),new google.maps.Point(11,12));var mapmap_recherche=null;function onLoadmap_recherche(){var mapObjmap_recherche=document.getElementById("map_recherche");if(mapObjmap_recherche!='undefined'&&mapObjmap_recherche!=null){var mapOptionsmap_recherche={scrollwheel:false,zoom:10,mapTypeId:google.maps.MapTypeId.ROADMAP,mapTypeControl:true,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.DEFAULT}};mapOptionsmap_recherche.center=new google.maps.LatLng(49.065750,-0.704691);mapmap_recherche=new google.maps.Map(mapObjmap_recherche,mapOptionsmap_recherche);var bdsmap_recherche=new google.maps.LatLngBounds(new google.maps.LatLng(48.473997,-1.65838998),new google.maps.LatLng(49.657503,0.24900798));mapmap_recherche.fitBounds(bdsmap_recherche);var point=new google.maps.LatLng(48.8571,-0.605874);markersmap_recherche.push(createMarker(mapmap_recherche,point,"GITE DE MONCY","
<\/a><\/td>

GITE DE MONCY<\/strong>

60 Couchages
61800 - MONCY<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_0"]));var point=new google.maps.LatLng(48.4856,-0.694435);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Gîte de Bellevue","

<\/a><\/td>

Gîte de Bellevue<\/strong>

50 Couchages
61350 - Saint Fraimbault<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_1"]));var point=new google.maps.LatLng(48.6117,0.230308);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Le Domaine de la Cour","

<\/a><\/td>

Le Domaine de la Cour<\/strong>

70 Couchages
61500 - Aunou sur Orne<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_2"]));var point=new google.maps.LatLng(48.9209,-0.246872);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Domaine de la Tour","

<\/a><\/td>

Domaine de la Tour<\/strong>

42 Couchages
14700 - Saint Pierre Canivet<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_3"]));var point=new google.maps.LatLng(48.5153,-1.37792);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Domaine De Normandie","

<\/a><\/td>

Domaine De Normandie<\/strong>

50 Couchages
50240 - SAINT JAMES<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_4"]));var point=new google.maps.LatLng(48.7663,0.102663);markersmap_recherche.push(createMarker(mapmap_recherche,point,"l'Orangerie","

<\/a><\/td>

l'Orangerie<\/strong>

80 Couchages
61310 - LE BOURG-SAINT-LEONARD<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_5"]));var point=new google.maps.LatLng(48.9053,-0.473285);markersmap_recherche.push(createMarker(mapmap_recherche,point,"CAPA'VENTURE","

<\/a><\/td>

CAPA'VENTURE<\/strong>

100 Couchages
14570 - Clécy<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_6"]));var point=new google.maps.LatLng(49.5331,-1.45287);markersmap_recherche.push(createMarker(mapmap_recherche,point,"La Duckerie","

<\/a><\/td>

La Duckerie<\/strong>

55 Couchages
50700 - Tamerville<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_7"]));var point=new google.maps.LatLng(49.6459,-1.63969);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Hervé","

<\/a><\/td>

Hervé<\/strong>

99 Couchages
50100 - Cherbourg-en-Cotentin<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_8"]));var point=new google.maps.LatLng(48.6898,-1.47977);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Auberge de Jeunesse HI Genêts - Baie du Mont-Saint-Michel","

<\/a><\/td>

Auberge de Jeunesse HI Genêts - Baie du Mont-Saint-Michel<\/strong>

51 Couchages
50530 - Genêts<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_9"]));var point=new google.maps.LatLng(49.0071,-0.418731);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Domaine Suisse Normande","

<\/a><\/td>

Domaine Suisse Normande<\/strong>

40 Couchages
14220 - Croisilles<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_10"]));var point=new google.maps.LatLng(48.5257,-0.769303);markersmap_recherche.push(createMarker(mapmap_recherche,point,"GITE DU PAS DE LA VENTE","

<\/a><\/td>

GITE DU PAS DE LA VENTE<\/strong>

40 Couchages
61350 - Passais Villages<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_11"]));markerClusterermap_recherche=new MarkerClusterer(mapmap_recherche,markersmap_recherche,{maxZoom:null,gridSize:30,styles:null});}} var currentinfowindow=null;function createMarker(map,point,title,html,icon,icon_shadow,sidebar_id,openers){var marker_options={position:point,map:map,title:title,disableAutoPan:true};if(icon!=''){marker_options.icon=icon;} if(icon_shadow!=''){marker_options.icon_shadow=icon_shadow;} var new_marker=new google.maps.Marker(marker_options);if(html!=''){var infowindow=new google.maps.InfoWindow({content:html});google.maps.event.addListener(new_marker,'click',function(){if(currentinfowindow)currentinfowindow.close();currentinfowindow=infowindow;infowindow.open(map,new_marker);});if(sidebar_id!=''){var sidebar=document.getElementById(sidebar_id);if(sidebar!=null&&sidebar!=undefined){var newlink=document.createElement('a');newlink.onclick=function(){infowindow.open(map,new_marker);return false};newlink.innerHTML=title;sidebar.appendChild(newlink);}} if(openers!=''&&!isEmpty(openers)){for(var i in openers){var opener=document.getElementById(openers[i]);if(opener) opener.onclick=function(){if(currentinfowindow)currentinfowindow.close();currentinfowindow=infowindow;infowindow.open(map,new_marker);return false};}}} return new_marker;} function isArray(a){return isObject(a)&&a.constructor==Array;} function isObject(a){return(a&&typeof a=='object')||isFunction(a);} function isFunction(a){return typeof a=='function';} function isEmpty(obj){for(var i in obj){return false;}return true;} window.initmap = false; window.onLoadmap = onLoadmap_recherche; $(document).ready(function() { window.$map = $("#map_recherche"); // onglets bootstrap var tab = $('a[data-toggle="tab"]'); if(tab.length) tab.on('shown.bs.tab', function (e) { if(!window.initmap) window.onLoadmap(); window.initmap = true; }); else onLoadmap_recherche(); google.maps.event.addDomListener(window, "resize", function() { google.maps.event.trigger($map[0], "resize"); }); }); $(function() { /* attach a submit handler to the form */ $("#searchForm").submit(function(event) { /* stop form from submitting normally */ event.preventDefault(); /* get some values from elements on the page: */ var $form = $( this ); /* Send the data using post and put the results in a div */ $.post( "recherche_results.php", $form.serialize(), function( data ) { var content = $( data ); $( "#results" ).fadeOut('slow').empty().append( content ).fadeIn("slow"); } ); /* Send the data using post and put the results in a div */ $.post( "recherche_map.php", $form.serialize(), function( data ) { $( "#map" ).fadeOut('slow').empty().append( '

' ).fadeIn("slow"); var content = $( data ); eval(content.text()); window.$map = $("#map_recherche"); window.onLoadmap = onLoadmap_recherche; if($map.is(":visible")) onLoadmap_recherche(); else window.initmap = false; } ); $("#various3").attr('href','map.php?'+$("#searchForm").serialize()); }); });