function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } } } /** * @author Marco Alionso Ramirez, marco@onemarco.com * @url http://onemarco.com * @version 1.0 * This code is public domain */ /** * The Tooltip class is an addon designed for the Google Maps GMarker class. * @constructor * @param {GMarker} marker * @param {String} text * @param {Number} padding */ function Tooltip(marker, text, padding){ this.marker_ = marker; this.text_ = text; this.padding_ = padding; } Tooltip.prototype = new GOverlay(); Tooltip.prototype.initialize = function(map){ var div = document.createElement("div"); div.appendChild(document.createTextNode(this.text_)); div.className = 'tooltip'; div.style.position = 'absolute'; div.style.visibility = 'hidden'; div.style.backgroundColor = '#FFFFFF'; div.style.fontWeight = 'bold'; div.style.width = '200px'; div.style.height = '22px'; div.style.padding = '2px'; div.style.border = '1px solid #000'; div.style.textAlign = 'center'; map.getPane(G_MAP_FLOAT_PANE).appendChild(div); this.map_ = map; this.div_ = div; } Tooltip.prototype.remove = function(){ this.div_.parentNode.removeChild(this.div_); } Tooltip.prototype.copy = function(){ return new Tooltip(this.marker_,this.text_,this.padding_); } Tooltip.prototype.redraw = function(force){ if (!force) return; var markerPos = this.map_.fromLatLngToDivPixel(this.marker_.getPoint()); var iconAnchor = this.marker_.getIcon().iconAnchor; var xPos = Math.round(markerPos.x - this.div_.clientWidth / 2); var yPos = markerPos.y - iconAnchor.y - this.div_.clientHeight - this.padding_; this.div_.style.top = yPos + 'px'; this.div_.style.left = xPos + 'px'; } Tooltip.prototype.show = function(){ this.div_.style.visibility = 'visible'; } Tooltip.prototype.hide = function(){ this.div_.style.visibility = 'hidden'; } function initializeAllHouses(id) { addLoadEvent(function() { initializeAllHousesFunc(id); }); } function initializeAllHousesFunc(id) { if (GBrowserIsCompatible() && 73!=0) { var map = new GMap2(document.getElementById(id), { mapTypes:[G_HYBRID_MAP] }); map.setCenter(new GLatLng(43.2924993688, 2.70414165225), 5); map.setUIToDefault(); // Create a base icon for all of our markers that specifies the // shadow, icon dimensions, etc. var baseIcon = new GIcon(G_DEFAULT_ICON); baseIcon.image = "http://www.kuypersverhuur.nl/images/icons/home.png"; baseIcon.iconSize = new GSize(32, 37); baseIcon.shadowSize = new GSize(0,0); var bounds = new GLatLngBounds(); // Creates a marker whose info window displays the letter corresponding // to the given index. function createMarker(point, html, tooltiptext) { var marker = new GMarker(point, baseIcon); bounds.extend(point); GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html); }); var tooltip = new Tooltip(marker,tooltiptext,0); marker.tooltip = tooltip; map.addOverlay(tooltip); GEvent.addListener(marker,'mouseover',function(){ this.tooltip.show(); }); GEvent.addListener(marker,'mouseout',function(){ this.tooltip.hide(); }); return marker; } // Add 10 markers to the map at random locations latlng = new GLatLng(43.33372346673685, 2.799464464187622); html = "

202 Arc en Ciel

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "202 Arc en Ciel"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.29810418556833, 2.7613234519958496); html = "

101 Le Mistral

Number of persons: 9
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "101 Le Mistral"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.29784650788617, 2.759660482406616); html = "

102 La Cave

Number of persons: 8
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "102 La Cave"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.29762006296102, 2.7591025829315185); html = "

103 Chez le Pic

Number of persons: 7
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "103 Chez le Pic"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.33455846999541, 2.798488140106201); html = "

201 L'Oliveraie

Number of persons: 12
Rating: \"5\"5\"5\"5\"5

more information
"; tooltiptext = "201 L'Oliveraie"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.2986117293243, 2.7623212337493896); html = "

104 Les Veinards

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "104 Les Veinards"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.2980924729701, 2.761661410331726); html = "

105 Casa Inca

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "105 Casa Inca"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.221103731976896, 2.6953518390655517); html = "

301 Le Jumeau

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "301 Le Jumeau"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.19542309697125, 2.685760259628296); html = "

351 Le Rêve

Number of persons: 7
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "351 Le Rêve"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.33219, 2.60477); html = "

401 Mardille

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "401 Mardille"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.32822, 2.59885); html = "

402 La Cerisette

Number of persons: 10
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "402 La Cerisette"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.33314, 2.60507); html = "

403 C'est La Vie

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "403 C'est La Vie"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.33359, 2.60516); html = "

404 La Capitelle

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "404 La Capitelle"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.75015, 3.33952); html = "

701 Les Trois Olives

Number of persons: 10
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "701 Les Trois Olives"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.33265, 2.60496); html = "

405 Villa Marlise

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "405 Villa Marlise"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.34668, 2.60381); html = "

502 Villa 't Brandpunt

Number of persons: 8
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "502 Villa 't Brandpunt"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.27792, 2.799711227416992); html = "

227 Le Portail Bleu

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "227 Le Portail Bleu"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.2182, 2.649641); html = "

352 RoCo l'Aigle

Number of persons: 10
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "352 RoCo l'Aigle"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.29934570818565, 2.7615541219711303); html = "

107 Huize Pétrus

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "107 Huize Pétrus"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.298498508392015, 2.7617257833480835); html = "

108 Villa Laurier Rose

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "108 Villa Laurier Rose"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.29906070680767, 2.7621442079544067); html = "

111 Septentrion

Number of persons: 4
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "111 Septentrion"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.274877575364506, 2.798048257827759); html = "

228 Les Verts Arbres

Number of persons: 6
Rating: \"3\"3\"3

more information
"; tooltiptext = "228 Les Verts Arbres"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.27849023143137, 2.801186442375183); html = "

229 Au Point d'Arret

Number of persons: 4
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "229 Au Point d'Arret"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.333653232294424, 2.7998721599578857); html = "

203 Le Carré

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "203 Le Carré"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.27371757436033, 2.8041046857833862); html = "

230 La Vue Dégagée

Number of persons: 7
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "230 La Vue Dégagée"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.29991961101645, 2.7641451358795166); html = "

110 Le Rocailleux

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "110 Le Rocailleux"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.27822856516998, 2.8001832962036133); html = "

232 Récolte

Number of persons: 4
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "232 Récolte"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.198168406382046, 2.6870959997177124); html = "

353 Aïoli

Number of persons: 4
Rating: \"3\"3\"3

more information
"; tooltiptext = "353 Aïoli"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.222336, 2.689863); html = "

304 Villa Femke

Number of persons: 6
Rating: \"3\"3\"3

more information
"; tooltiptext = "304 Villa Femke"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.19558, 2.68697); html = "

354 Villa Bienvenue

Number of persons: 8
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "354 Villa Bienvenue"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.27623674032746, 2.8000974655151367); html = "

233 Les Renards

Number of persons: 8
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "233 Les Renards"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.29810808976724, 2.7604758739471435); html = "

112 Calistelle

Number of persons: 8
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "112 Calistelle"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.222481, 2.690303); html = "

305 Villa Sanne

Number of persons: 6
Rating: \"3\"3\"3

more information
"; tooltiptext = "305 Villa Sanne"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.22069718010261, 2.6946061849594116); html = "

306 Farigoulette

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "306 Farigoulette"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.22246018832969, 2.6913338899612426); html = "

307 Villa Blanche

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "307 Villa Blanche"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.382450, 2.913389); html = "

651 Les Safranières

Number of persons: 6
Rating: \"3\"3\"3

more information
"; tooltiptext = "651 Les Safranières"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.34835, 2.60874); html = "

503 Lézard Bleu

Number of persons: 8
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "503 Lézard Bleu"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.34795, 2.60900); html = "

504 Aux Cypresses

Number of persons: 8
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "504 Aux Cypresses"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.34330, 2.70786); html = "

476 La Pampa

Number of persons: 4
Rating: \"3\"3\"3

more information
"; tooltiptext = "476 La Pampa"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.27937, 2.80263); html = "

234 Le Pichet

Number of persons: 4
Rating: \"3\"3\"3

more information
"; tooltiptext = "234 Le Pichet"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.31799, 2.63957); html = "

452 J'Adore

Number of persons: 7
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "452 J'Adore"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.29293480632875, 2.7685117721557617); html = "

113 Beau Coupe

Number of persons: 8
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "113 Beau Coupe"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.28894034000935, 2.7705690264701843); html = "

114 Serre d'Oupia

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "114 Serre d'Oupia "; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.34149, 2.70864); html = "

477 Le Pigeonnier

Number of persons: 4
Rating: \"3\"3\"3

more information
"; tooltiptext = "477 Le Pigeonnier"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.31348, 2.65808); html = "

453 Le Petit Soleil

Number of persons: 8
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "453 Le Petit Soleil"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.37902, 2.77561); html = "

205 La Garrigue

Number of persons: 10
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "205 La Garrigue"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.33012, 2.52564); html = "

505 Le Jardin des Olives

Number of persons: 8
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "505 Le Jardin des Olives"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.22097473023349, 2.6933884620666504); html = "

308 Le Papillon

Number of persons: 8
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "308 Le Papillon"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.20374, 2.63267); html = "

356 Le Bon

Number of persons: 4
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "356 Le Bon"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.273834747182875, 2.8004086017608642); html = "

235 Gilde d'Oc

Number of persons: 8
Rating: \"3\"3\"3

more information
"; tooltiptext = "235 Gilde d'Oc"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.35781, 2.82911); html = "

207 La Roche

Number of persons: 8
Rating: \"3\"3\"3

more information
"; tooltiptext = "207 La Roche"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.198915328739176, 2.682434320449829); html = "

359 Mas de Montbrun

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "359 Mas de Montbrun"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.35344832541331, 2.747225761413574); html = "

208 La Maison du Confluent

Number of persons: 8
Rating: \"3\"3\"3

more information
"; tooltiptext = "208 La Maison du Confluent"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.20203, 2.62797); html = "

358 Parfait

Number of persons: 6
Rating: \"3\"3\"3

more information
"; tooltiptext = "358 Parfait"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.19909, 2.67959); html = "

360 Villa Le Cabernet

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "360 Villa Le Cabernet"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.19886, 2.67972); html = "

361 Villa Le Merlot

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "361 Villa Le Merlot"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.19875, 2.67989); html = "

362 Villa Le Sauvignon

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "362 Villa Le Sauvignon"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.19862, 2.68023); html = "

363 Villa Chardonnay

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "363 Villa Chardonnay"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.19830, 2.68013); html = "

364 Villa Le Grenache

Number of persons: 8
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "364 Villa Le Grenache"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.19836, 2.67969); html = "

365 Villa Le Carignan

Number of persons: 8
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "365 Villa Le Carignan"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.19847, 2.67944); html = "

366 Villa Le Syrah

Number of persons: 8
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "366 Villa Le Syrah"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.251392036635195, 2.7217555046081543); html = "

309 Chez Nolly

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "309 Chez Nolly"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.34719, 2.60316); html = "

506 Villa Léa

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "506 Villa Léa"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.35869056402561, 2.218712568283081); html = "

851 Le Garric

Number of persons: 7
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "851 Le Garric"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.25110, 2.85710); html = "

253 Vue Canigou

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "253 Vue Canigou"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.37657, 2.23825); html = "

852 Dom. de Pantouquet

Number of persons: 14
Rating: \"5\"5\"5\"5\"5

more information
"; tooltiptext = "852 Dom. de Pantouquet"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.44027, 2.31279); html = "

853 Le Seba Ouest- Les Martys

Number of persons: 8
Rating: \"3\"3\"3

more information
"; tooltiptext = "853 Le Seba Ouest- Les Martys "; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.20196, 2.62752); html = "

367 Le Rémoulin

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "367 Le Rémoulin"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.36843, 2.63132); html = "

454 L'Ecole

Number of persons: 8
Rating: \"3\"3\"3

more information
"; tooltiptext = "454 L'Ecole"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.27884, 2.80064); html = "

236 l'Olivier

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "236 l'Olivier"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.22839, 2.67432); html = "

310 Aude Vie

Number of persons: 8
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "310 Aude Vie"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.44986, 2.85022); html = "

653 Bois de la Clauze

Number of persons: 6
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "653 Bois de la Clauze"; map.addOverlay(createMarker(latlng, html, tooltiptext)); latlng = new GLatLng(43.31348, 2.65808); html = "

455 Villa Delphine

Number of persons: 8
Rating: \"4\"4\"4\"4

more information
"; tooltiptext = "455 Villa Delphine"; map.addOverlay(createMarker(latlng, html, tooltiptext)); }else{ document.getElementById(id).style.display = 'none'; document.getElementById(id).style.height = '0px'; } }