function initMap() {
var centre = {lat: 44.9958, lng: 5.92935} ;
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 8,
center: centre
});
var tempMarkers = [];
var infoWindow = new google.maps.InfoWindow();
var marker, i;
for (var i = 0; i < locations.length; i++) {
var lat = locations[i].lat;
var lng = locations[i].lng;
marker = new google.maps.Marker({
position: new google.maps.LatLng(lat, lng),
map: map,
icon: 'https://cdn2.iconfinder.com/data/icons/flat-ui-icons-24-px/24/location-24-32.png'
});
tempMarkers.push(marker);
//markerCluster.addMarker(marker);
var prev_infowindow = false;
google.maps.event.addListener(marker, 'click', (function(marker, i) {
return function() {
var contentString = ''+locations[i].nom+'
'+locations[i].activite+' à '+locations[i].ville;
var infoWindow = new google.maps.InfoWindow({
content: contentString
});
if (prev_infowindow) {
prev_infowindow.close();
}
prev_infowindow = infoWindow;
infoWindow.open(map, marker);
}
})(marker, i));
}
var markerCluster = new MarkerClusterer(map,tempMarkers,{imagePath: 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m'});
}
var locations = [
{lat: 45.06371700, lng: 6.03812100,
nom: 'Le Colporteur',url: '/hotspot-wifi-camping-le-bourg-d-oisans-le-colporteur-974.html',ville: 'Le Bourg D\'Oisans', activite: 'Camping'},
{lat: 44.95697770, lng: 5.68084930,
nom: 'Club du Soleil de Grenoble',url: '/hotspot-wifi-camping-avignonet-club-du-soleil-de-grenoble-1611.html',ville: 'Avignonet', activite: 'Camping'},
{lat: 45.18637150, lng: 5.71925020,
nom: 'Grenoble Résidence les Bains',url: '/hotspot-wifi-ehpa-grenoble-grenoble-residence-les-bains-1706.html',ville: 'Grenoble', activite: 'EHPA'},
{lat: 45.59006780, lng: 5.27405430,
nom: 'Mamma\'S Kitchen',url: '/hotspot-wifi-restaurant-bourgoin-jallieu-mamma-s-kitchen-2509.html',ville: 'Bourgoin Jallieu', activite: 'Restaurant'},
{lat: 45.16658490, lng: 5.69853410,
nom: 'Camping les 3 Pucelles',url: '/hotspot-wifi-camping-seyssins-camping-les-3-pucelles-3781.html',ville: 'Seyssins', activite: 'Camping'},
{lat: 45.36271300, lng: 5.59134900,
nom: 'Fifty Nine',url: '/hotspot-wifi-salle-de-sport-voiron-fifty-nine-4010.html',ville: 'Voiron', activite: 'Salle de sport'},
{lat: 45.18725770, lng: 5.76132010,
nom: 'Amazonia Smh',url: '/hotspot-wifi-salle-de-sport-saint-martin-d-heres-amazonia-smh-4124.html',ville: 'Saint Martin D\'Hères', activite: 'Salle de sport'},
{lat: 45.14332300, lng: 5.69019010,
nom: 'Fifty Nine Comboire',url: '/hotspot-wifi-salle-de-sport-echirolles-fifty-nine-comboire-4125.html',ville: 'Echirolles', activite: 'Salle de sport'},
{lat: 45.18633640, lng: 5.73325100,
nom: 'Fifty Nine Chavant',url: '/hotspot-wifi-salle-de-sport-grenoble-fifty-nine-chavant-4135.html',ville: 'Grenoble', activite: 'Salle de sport'},
{lat: 45.17581960, lng: 5.72935970,
nom: 'Ehpa Montesquieu',url: '/hotspot-wifi-espace-public-grenoble-ehpa-montesquieu-5699.html',ville: 'Grenoble', activite: 'Espace public'},
{lat: 45.17135990, lng: 5.72369510,
nom: 'Ehpa les Alpins',url: '/hotspot-wifi-ehpa-grenoble-ehpa-les-alpins-5701.html',ville: 'Grenoble', activite: 'EHPA'},
{lat: 45.19537780, lng: 5.72871910,
nom: 'Ehpa Saint-Laurent',url: '/hotspot-wifi-ehpa-grenoble-ehpa-saint-laurent-5706.html',ville: 'Grenoble', activite: 'EHPA'},
{lat: 45.52184590, lng: 4.87398030,
nom: 'Restaurant Octave - Restoleil',url: '/hotspot-wifi-restaurant-vienne-restaurant-octave-restoleil-5820.html',ville: 'Vienne', activite: 'Restaurant'},
{lat: 45.25655500, lng: 5.99808100,
nom: 'Le Kaktuss',url: '/hotspot-wifi-bar-restaurant-prapoutel-le-kaktuss-6484.html',ville: 'Prapoutel', activite: 'Bar restaurant'},
{lat: 45.58699700, lng: 5.09552600,
nom: 'Diemoz-Les Jardins Medicis',url: '/hotspot-wifi-ehpad-diemoz-diemoz-les-jardins-medicis-6615.html',ville: 'Diemoz', activite: 'EHPAD'},
{lat: 45.19030030, lng: 5.71692370,
nom: 'Hôtel des Alpes',url: '/hotspot-wifi-hotel-grenoble-hotel-des-alpes-6886.html',ville: 'Grenoble', activite: 'Hôtel'},
{lat: 45.52558700, lng: 4.87433900,
nom: 'Hotel Premiere Classe de Vienne',url: '/hotspot-wifi-hotel-vienne-hotel-premiere-classe-de-vienne-7488.html',ville: 'Vienne', activite: 'Hôtel'},
{lat: 45.18626490, lng: 5.72022260,
nom: 'Villa Sully Grenoble',url: '/hotspot-wifi-ehpad-grenoble-villa-sully-grenoble-8625.html',ville: 'Grenoble', activite: 'EHPAD'},
{lat: 45.65501900, lng: 5.20513300,
nom: 'Le Mas du Murinais',url: '/hotspot-wifi-restaurant-frontonas-le-mas-du-murinais-9322.html',ville: 'Frontonas', activite: 'Restaurant'},
{lat: 45.18748300, lng: 5.72141900,
nom: 'Hotel Victoria',url: '/hotspot-wifi-hotel-grenoble-hotel-victoria-9332.html',ville: 'Grenoble', activite: 'Hôtel'},
{lat: 45.09286230, lng: 6.07189320,
nom: 'Le Chaix',url: '/hotspot-wifi-hotel-l-alpe-d-huez-le-chaix-9346.html',ville: 'L\'Alpe D\'Huez', activite: 'Hôtel'},
{lat: 45.58927100, lng: 5.28094100,
nom: 'Multiworld Bourgoin-Jallieu',url: '/hotspot-wifi-centre-de-loisirs-bourgoin-jallieu-multiworld-bourgoin-jallieu-9829.html',ville: 'Bourgoin-Jallieu', activite: 'Centre de loisirs'},
{lat: 45.58871700, lng: 5.28685300,
nom: 'Sas Maison Jas',url: '/hotspot-wifi-sandwicherie-bourgoin-jallieu-sas-maison-jas-9939.html',ville: 'Bourgoin Jallieu', activite: 'Sandwicherie'},
{lat: 45.33832700, lng: 5.05403100,
nom: 'Ecole de Conduite Yanic Beaurepaire',url: '/hotspot-wifi-espace-public-beaurepaire-ecole-de-conduite-yanic-beaurepaire-9946.html',ville: 'Beaurepaire', activite: 'Espace public'},
{lat: 45.52270500, lng: 4.87511700,
nom: 'Ecole de Conduite Yanic Vienne',url: '/hotspot-wifi-espace-public-vienne-ecole-de-conduite-yanic-vienne-9955.html',ville: 'Vienne', activite: 'Espace public'},
{lat: 45.57300900, lng: 5.30811700,
nom: 'Le Clos Vernay',url: '/hotspot-wifi-hotel-nivolas-vermelle-le-clos-vernay-9956.html',ville: 'Nivolas Vermelle', activite: 'Hôtel'},
{lat: 45.55402900, lng: 5.00556400,
nom: 'Ecole de Conduite Yanic Septeme',url: '/hotspot-wifi-espace-public-septeme-ecole-de-conduite-yanic-septeme-9958.html',ville: 'Septeme', activite: 'Espace public'},
{lat: 45.01224600, lng: 6.12430200,
nom: 'Hotel la Brunerie',url: '/hotspot-wifi-hotel-les-deux-alpes-hotel-la-brunerie-10084.html',ville: 'Les Deux Alpes', activite: 'Hôtel'},
{lat: 45.18811400, lng: 5.68450000,
nom: 'Idéal Pneu Fontaine',url: '/hotspot-wifi-centre-automobile-fontaine-ideal-pneu-fontaine-10345.html',ville: 'Fontaine', activite: 'Centre automobile'},
{lat: 45.58571100, lng: 4.87848900,
nom: 'Ecole de Conduite Yanic Chuzelles',url: '/hotspot-wifi-espace-public-chuzelles-ecole-de-conduite-yanic-chuzelles-10355.html',ville: 'Chuzelles', activite: 'Espace public'},
{lat: 45.58542600, lng: 4.95437100,
nom: 'Ecole de Conduite Yanic Luzinay',url: '/hotspot-wifi-espace-public-luzinay-ecole-de-conduite-yanic-luzinay-10357.html',ville: 'Luzinay', activite: 'Espace public'},
{lat: 45.37291600, lng: 4.79649800,
nom: 'Ecole de Conduite Yanic le Péage de Roussillon',url: '/hotspot-wifi-espace-public-le-peage-de-roussillon-ecole-de-conduite-yanic-le-peage-de-roussillon-10428.html',ville: 'Le Péage de Roussillon', activite: 'Espace public'},
{lat: 45.02062900, lng: 6.12369700,
nom: 'Le Chalet des Glaciers',url: '/hotspot-wifi-hotel-les-deux-alpes-le-chalet-des-glaciers-10504.html',ville: 'Les Deux Alpes', activite: 'Hôtel'},
{lat: 44.51870700, lng: 0.22149300,
nom: 'Idéal Pneu Tignieu Jameyzieu',url: '/hotspot-wifi-centre-automobile-tignieu-jameyzieu-ideal-pneu-tignieu-jameyzieu-10508.html',ville: 'Tignieu Jameyzieu', activite: 'Centre automobile'},
{lat: 45.26746300, lng: 5.91839600,
nom: 'Idéal Pneu Froges',url: '/hotspot-wifi-centre-automobile-froges-ideal-pneu-froges-10512.html',ville: 'Froges', activite: 'Centre automobile'},
{lat: 44.51870700, lng: 0.22149300,
nom: 'Idéal Pneu St Egrève',url: '/hotspot-wifi-centre-automobile-st-egreve-ideal-pneu-st-egreve-10516.html',ville: 'St Egreve', activite: 'Centre automobile'},
{lat: 45.29994800, lng: 5.49279600,
nom: 'Idéal Pneu Tullins',url: '/hotspot-wifi-centre-automobile-tullins-ideal-pneu-tullins-10542.html',ville: 'Tullins', activite: 'Centre automobile'},
{lat: 45.16493000, lng: 5.74204840,
nom: 'Hotel Inn Grenoble Sud Eybens Parc des Expositions',url: '/hotspot-wifi-hotel-eybens-hotel-inn-grenoble-sud-eybens-parc-des-expositions-10548.html',ville: 'Eybens', activite: 'Hôtel'},
{lat: 45.32665500, lng: 5.58555800,
nom: 'Logis du Grand Champ',url: '/hotspot-wifi-residence-de-services-saint-jean-de-moirans-logis-du-grand-champ-10554.html',ville: 'Saint Jean de Moirans', activite: 'Résidence de services'},
{lat: 45.19115800, lng: 5.73115500,
nom: 'Au Rencard (sarl Frerimou)',url: '/hotspot-wifi-bar-brasserie-grenoble-au-rencard-sarl-frerimou-10690.html',ville: 'Grenoble', activite: 'Bar brasserie'},
{lat: 45.18942980, lng: 5.71654130,
nom: 'Aloha Aigle',url: '/hotspot-wifi-salle-de-sport-grenoble-aloha-aigle-10965.html',ville: 'Grenoble', activite: 'Salle de sport'},
{lat: -99.00000000, lng: -99.00000000,
nom: 'Feuillette St Jean de Soudain',url: '/hotspot-wifi-sandwicherie-st-jean-de-soudain-feuillette-st-jean-de-soudain-11038.html',ville: 'St Jean de Soudain', activite: 'Sandwicherie'},
{lat: 45.60164000, lng: 5.22979400,
nom: 'Fifty Nine Bourgoin',url: '/hotspot-wifi-salle-de-sport-bourgoin-jailleu-fifty-nine-bourgoin-11054.html',ville: 'Bourgoin Jailleu', activite: 'Salle de sport'},
{lat: 45.61540100, lng: 5.14005400,
nom: 'Boulangerie Colette',url: '/hotspot-wifi-restaurant-saint-savin-boulangerie-colette-11073.html',ville: 'Saint Savin', activite: 'Restaurant'},
{lat: 45.15951910, lng: 5.70896860,
nom: 'Abbatiale Hôtel - Restaurant la Boucherie',url: '/hotspot-wifi-hotel-grenoble-abbatiale-hotel-restaurant-la-boucherie-11255.html',ville: 'Grenoble', activite: 'Hôtel'},
{lat: 44.51870700, lng: 0.22149300,
nom: 'Idéal Pneu Bourgoin-Jallieu',url: '/hotspot-wifi-centre-automobile-bourgoin-jallieu-ideal-pneu-bourgoin-jallieu-11350.html',ville: 'Bourgoin-Jallieu', activite: 'Centre automobile'},
{lat: -99.00000000, lng: -99.00000000,
nom: 'Hotel de France',url: '/hotspot-wifi-hotel-la-cote-saint-andre-hotel-de-france-11464.html',ville: 'La Cote Saint Andre', activite: 'Hôtel'},
{lat: -99.00000000, lng: -99.00000000,
nom: 'Atmosphere Hotel',url: '/hotspot-wifi-hotel-les-deux-alpes-atmosphere-hotel-11506.html',ville: 'Les Deux Alpes', activite: 'Hôtel'},
{lat: 44.81785390, lng: 5.94105100,
nom: 'La Tuile Aux Loups',url: '/hotspot-wifi-collectif-corps-la-tuile-aux-loups-12436.html',ville: 'Corps', activite: 'Collectif'},
{lat: 45.12206590, lng: 5.34216300,
nom: 'Camping du Chateau 38160 Beauvoir En Royans',url: '/hotspot-wifi-camping-beauvoir-en-royans-camping-du-chateau-38160-beauvoir-en-royans-12463.html',ville: 'Beauvoir En Royans', activite: 'Camping'}
]