/************************************************* * 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(43.410800,3.443815);mapmap_recherche=new google.maps.Map(mapObjmap_recherche,mapOptionsmap_recherche);var bdsmap_recherche=new google.maps.LatLngBounds(new google.maps.LatLng(42.363974,2.2658731),new google.maps.LatLng(44.457626,4.6217569));mapmap_recherche.fitBounds(bdsmap_recherche);var point=new google.maps.LatLng(44.0273,4.15684);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Grand gîte de groupe Chez Fanny dans le Gard","
<\/a><\/td>

Grand gîte de groupe Chez Fanny dans le Gard<\/strong>

30 Couchages
30360 - NERS<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_0"]));var point=new google.maps.LatLng(42.9191,2.57474);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Les Gîtes du Torgan","

<\/a><\/td>

Les Gîtes du Torgan<\/strong>

45 Couchages
11330 - Massac<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_1"]));var point=new google.maps.LatLng(43.8956,4.03948);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Les Gites de Les Mazes","

<\/a><\/td>

Les Gites de Les Mazes<\/strong>

26 Couchages
30260 - Orthox Serignac Quilhan<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_2"]));var point=new google.maps.LatLng(44.4371,3.91906);markersmap_recherche.push(createMarker(mapmap_recherche,point,"le Mas des Sédariès","

<\/a><\/td>

le Mas des Sédariès<\/strong>

23 Couchages
48800 - VILLEFORT<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_3"]));var point=new google.maps.LatLng(43.8271,4.59866);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Ptit Paradis provençal","

<\/a><\/td>

Ptit Paradis provençal<\/strong>

30 Couchages
30300 - Beaucaire<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_4"]));var point=new google.maps.LatLng(42.3845,2.61289);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Domaine Le Noell","

<\/a><\/td>

Domaine Le Noell<\/strong>

115 Couchages
66260 - St Laurent de Cerdans<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_5"]));var point=new google.maps.LatLng(42.9684,2.28897);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Le Castillou","

<\/a><\/td>

Le Castillou<\/strong>

15 Couchages
11190 - Luc sur Aude<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_6"]));var point=new google.maps.LatLng(44.045,3.86239);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Les Fermes de Rieumal","

<\/a><\/td>

Les Fermes de Rieumal<\/strong>

40 Couchages
30460 - Lasalle<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_7"]));var point=new google.maps.LatLng(43.8775,3.79726);markersmap_recherche.push(createMarker(mapmap_recherche,point,"La Maison des Arts","

<\/a><\/td>

La Maison des Arts<\/strong>

15 Couchages
34190 - FERRIERES LES VERRERIES<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_8"]));var point=new google.maps.LatLng(43.4295,3.10571);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Villa Réals","

<\/a><\/td>

Villa Réals<\/strong>

18 Couchages
34370 - Cazouls les Beziers<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_9"]));var point=new google.maps.LatLng(43.7601,4.10241);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Domaine de Christin","

<\/a><\/td>

Domaine de Christin<\/strong>

101 Couchages
30250 - Sommières<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_10"]));var point=new google.maps.LatLng(42.8889,2.72364);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Le Relais d'Aguilar","

<\/a><\/td>

Le Relais d'Aguilar<\/strong>

70 Couchages
11350 - Tuchan<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_11"]));var point=new google.maps.LatLng(43.8366,3.74096);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Mas du Grand Bosc","

<\/a><\/td>

Mas du Grand Bosc<\/strong>

30 Couchages
34380 - Notre Dame de Londres<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_12"]));var point=new google.maps.LatLng(43.3992,2.76636);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Domaine de Lacan","

<\/a><\/td>

Domaine de Lacan<\/strong>

49 Couchages
34220 - Vélieux<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_13"]));var point=new google.maps.LatLng(43.3412,3.18353);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Hameau Montplaisir","

<\/a><\/td>

Hameau Montplaisir<\/strong>

36 Couchages
34500 - Béziers<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_14"]));var point=new google.maps.LatLng(43.5418,2.73572);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Domaine du Moulinet","

<\/a><\/td>

Domaine du Moulinet<\/strong>

40 Couchages
34330 - Le Soulié<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_15"]));var point=new google.maps.LatLng(42.888,2.71974);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Domaine la Peiriere","

<\/a><\/td>

Domaine la Peiriere<\/strong>

81 Couchages
11350 - Tuchan<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_16"]));var point=new google.maps.LatLng(44.3153,4.31706);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Camping La Combe","

<\/a><\/td>

Camping La Combe<\/strong>

85 Couchages
30430 - Barjac<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_17"]));var point=new google.maps.LatLng(44.1053,3.88468);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Village de gites Ravel","

<\/a><\/td>

Village de gites Ravel<\/strong>

120 Couchages
30270 - Saint-Jean-du-Gard<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_18"]));var point=new google.maps.LatLng(43.8131,3.86259);markersmap_recherche.push(createMarker(mapmap_recherche,point,"MAS DES VIOLETTES","

<\/a><\/td>

MAS DES VIOLETTES<\/strong>

49 Couchages
34270 - Valflaunès<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_19"]));var point=new google.maps.LatLng(43.7604,4.08161);markersmap_recherche.push(createMarker(mapmap_recherche,point,"La Combe de l'Aube","

<\/a><\/td>

La Combe de l'Aube<\/strong>

15 Couchages
34160 - Boisseron<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_20"]));var point=new google.maps.LatLng(44.0281,3.59261);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Les Vignals","

<\/a><\/td>

Les Vignals<\/strong>

28 Couchages
30120 - Arphy<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_21"]));var point=new google.maps.LatLng(43.621,2.85554);markersmap_recherche.push(createMarker(mapmap_recherche,point,"La forêt","

<\/a><\/td>

La forêt<\/strong>

21 Couchages
34330 - Cambon-et-Salvergues<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_22"]));var point=new google.maps.LatLng(43.8664,3.74187);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Domaine du Mas de Coulet","

<\/a><\/td>

Domaine du Mas de Coulet<\/strong>

40 Couchages
34190 - Brissac<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_23"]));var point=new google.maps.LatLng(44.2785,4.38491);markersmap_recherche.push(createMarker(mapmap_recherche,point,"Le Mas de Linde","

<\/a><\/td>

Le Mas de Linde<\/strong>

20 Couchages
30430 - Saint-Privat-de-Champclos<\/a><\/p><\/td><\/tr><\/table><\/div>",iconmap_recherche['httpswwwgitedegroupefrimglogo_carte_23png'].image,'',"",["opener_24"]));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()); }); });