/************************************************* * 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(48.133800,-2.747980);mapmap_recherche=new google.maps.Map(mapObjmap_recherche,mapOptionsmap_recherche);var bdsmap_recherche=new google.maps.LatLngBounds(new google.maps.LatLng(47.47692,-4.3526134),new google.maps.LatLng(48.79068,-1.1433466));mapmap_recherche.fitBounds(bdsmap_recherche);var point=new google.maps.LatLng(47.8808,-3.16463);markersmap_recherche.push(createMarker(mapmap_recherche,point,"L'ESCALE DU BLAVET","
<\/a><\/td>

L'ESCALE DU BLAVET<\/strong>

40 Couchages
56440 - LANGUIDIC<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_0"]));var point=new google.maps.LatLng(47.8652,-2.99613);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Les Chaumières de Kerhouiden","

<\/a><\/td>

Les Chaumières de Kerhouiden<\/strong>

40 Couchages
56150 - BAUD<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_1"]));var point=new google.maps.LatLng(48.6905,-3.84563);markersmap_recherche.push(createMarker(mapmap_recherche,point,"LA MAISON DE KERDIES","

<\/a><\/td>

LA MAISON DE KERDIES<\/strong>

40 Couchages
29630 - PLOUGASNOU<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_2"]));var point=new google.maps.LatLng(47.8162,-4.32115);markersmap_recherche.push(createMarker(mapmap_recherche,point,"FERME DE PERINAGUEN","

<\/a><\/td>

FERME DE PERINAGUEN<\/strong>

50 Couchages
29760 - PENMARCH<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_3"]));var point=new google.maps.LatLng(47.5481,-2.38368);markersmap_recherche.push(createMarker(mapmap_recherche,point,"LES BEAUX MATINS - Morbihan","

<\/a><\/td>

LES BEAUX MATINS - Morbihan<\/strong>

45 Couchages
56130 - MARZAN<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_4"]));var point=new google.maps.LatLng(47.6116,-2.92036);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Les Hauts de Toulvern","

<\/a><\/td>

Les Hauts de Toulvern<\/strong>

64 Couchages
56870 - BADEN<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_5"]));var point=new google.maps.LatLng(48.2431,-1.67442);markersmap_recherche.push(createMarker(mapmap_recherche,point,"La Touche Allard","

<\/a><\/td>

La Touche Allard<\/strong>

50 Couchages
35520 - Melesse<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_6"]));var point=new google.maps.LatLng(48.6902,-2.90872);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Domaine de Keravel","

<\/a><\/td>

Domaine de Keravel<\/strong>

70 Couchages
22580 - plouha<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_7"]));var point=new google.maps.LatLng(48.6029,-2.19039);markersmap_recherche.push(createMarker(mapmap_recherche,point,"L'Abbaye","

<\/a><\/td>

L'Abbaye<\/strong>

160 Couchages
22750 - Saint-Jacut-de-la-Mer<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_8"]));var point=new google.maps.LatLng(48.0617,-3.2725);markersmap_recherche.push(createMarker(mapmap_recherche,point,"domaine de poulmarvezen","

<\/a><\/td>

domaine de poulmarvezen<\/strong>

37 Couchages
56160 - Ploerdut<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_9"]));var point=new google.maps.LatLng(48.4927,-1.17481);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Le Clos du Meunier","

<\/a><\/td>

Le Clos du Meunier<\/strong>

32 Couchages
35420 - Mellé<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_10"]));var point=new google.maps.LatLng(48.5245,-2.00563);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Bois terre mer","

<\/a><\/td>

Bois terre mer<\/strong>

13 Couchages
22490 - Plouër-sur-Rance<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_11"]));var point=new google.maps.LatLng(47.9943,-3.89005);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Centre de Vacances Lann Blei","

<\/a><\/td>

Centre de Vacances Lann Blei<\/strong>

67 Couchages
29370 - Elliant<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_12"]));var point=new google.maps.LatLng(47.7334,-3.39621);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Auberge de jeunesse HI Lorient","

<\/a><\/td>

Auberge de jeunesse HI Lorient<\/strong>

84 Couchages
56100 - Lorient<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_13"]));var point=new google.maps.LatLng(48.2407,-2.89497);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Le Bôlogis","

<\/a><\/td>

Le Bôlogis<\/strong>

12 Couchages
22460 - Le Quillio<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_14"]));var point=new google.maps.LatLng(48.2408,-2.88387);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Le Bômanoir","

<\/a><\/td>

Le Bômanoir<\/strong>

12 Couchages
22460 - Le Quillio<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_15"]));var point=new google.maps.LatLng(48.7778,-3.30368);markersmap_recherche.push(createMarker(mapmap_recherche,point,"belle époque","

<\/a><\/td>

belle époque<\/strong>

45 Couchages
22450 - Camlez<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_16"]));var point=new google.maps.LatLng(47.4898,-2.79783);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Villa Charles Ashton","

<\/a><\/td>

Villa Charles Ashton<\/strong>

18 Couchages
56370 - Sarzeau<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_17"]));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()); }); });