function initMap() {
var centre = {lat: 48.8285, lng: 2.21881} ;
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: -99.00000000, lng: -99.00000000,
nom: 'Hôtel Montbriand Antony',url: '/hotspot-wifi-hotel-antony-hotel-montbriand-antony-191.html',ville: 'Antony', activite: 'Hôtel'},
{lat: 48.79191650, lng: 2.22035870,
nom: 'Meudon la Foret-Residence du Parc',url: '/hotspot-wifi-ehpad-meudon-la-foret-meudon-la-foret-residence-du-parc-1470.html',ville: 'Meudon la Foret', activite: 'EHPAD'},
{lat: 48.90915430, lng: 2.23692750,
nom: 'Hotel de L\'Etoile',url: '/hotspot-wifi-hotel-colombes-hotel-de-l-etoile-1771.html',ville: 'Colombes', activite: 'Hôtel'},
{lat: 48.94008120, lng: 2.28665300,
nom: 'Yprema Gennvilliers',url: '/hotspot-wifi-societe-gennevilliers-yprema-gennvilliers-3022.html',ville: 'Gennevilliers', activite: 'Société'},
{lat: 48.85414660, lng: 2.19589060,
nom: 'Garches-Residence de L\'Empereur',url: '/hotspot-wifi-ehpad-garches-garches-residence-de-l-empereur-3688.html',ville: 'Garches', activite: 'EHPAD'},
{lat: 48.77841590, lng: 2.23969630,
nom: 'Envies de Saison - Solaris',url: '/hotspot-wifi-restaurant-clamart-envies-de-saison-solaris-3755.html',ville: 'Clamart', activite: 'Restaurant'},
{lat: 48.82468150, lng: 2.25977700,
nom: 'Beaurochay',url: '/hotspot-wifi-grande-surface-issy-les-moulineaux-beaurochay-4025.html',ville: 'Issy les Moulineaux', activite: 'Grande surface'},
{lat: 48.92203100, lng: 2.28648010,
nom: 'Asnieres/seine-Residence Medicis',url: '/hotspot-wifi-ehpad-asnieres-sur-seine-asnieres-seine-residence-medicis-5495.html',ville: 'Asnieres Sur Seine', activite: 'EHPAD'},
{lat: 48.83894780, lng: 2.17516290,
nom: 'La Clairière',url: '/hotspot-wifi-hotel-garches-la-clairiere-5685.html',ville: 'Garches', activite: 'Hôtel'},
{lat: 48.77253750, lng: 2.25501410,
nom: 'Chatenay Malabry-Residence Jean Rostand',url: '/hotspot-wifi-ehpad-chatenay-malabry-chatenay-malabry-residence-jean-rostand-5768.html',ville: 'Chatenay-Malabry', activite: 'EHPAD'},
{lat: 48.45545200, lng: 1.56719000,
nom: 'Nogent le Phaye les Jardins D\'Automne',url: '/hotspot-wifi-ehpad-nogent-le-phaye-nogent-le-phaye-les-jardins-d-automne-5962.html',ville: 'Nogent le Phaye', activite: 'EHPAD'},
{lat: 48.91519370, lng: 2.29010390,
nom: 'Asnieres /seine-Residence les Marines',url: '/hotspot-wifi-ehpad-asnieres-sur-seine-asnieres-seine-residence-les-marines-6588.html',ville: 'Asnieres Sur Seine', activite: 'EHPAD'},
{lat: 48.91100400, lng: 2.26946060,
nom: 'Bois Colombes-Residence le Cap',url: '/hotspot-wifi-ehpad-bois-colombes-bois-colombes-residence-le-cap-6595.html',ville: 'Bois Colombes', activite: 'EHPAD'},
{lat: 48.80343400, lng: 2.26305300,
nom: 'Clamart-Residence Alphonse Daudet',url: '/hotspot-wifi-ehpad-clamart-clamart-residence-alphonse-daudet-6605.html',ville: 'Clamart', activite: 'EHPAD'},
{lat: 48.90165230, lng: 2.31097260,
nom: 'Clichy-Residence les Adrets',url: '/hotspot-wifi-ehpad-clichy-clichy-residence-les-adrets-6606.html',ville: 'Clichy', activite: 'EHPAD'},
{lat: 48.92555500, lng: 2.24462800,
nom: 'Colombes-Residence Azur',url: '/hotspot-wifi-ehpad-colombes-colombes-residence-azur-6607.html',ville: 'Colombes', activite: 'EHPAD'},
{lat: 48.91516550, lng: 2.23585700,
nom: 'Colombes-Residence Esterel',url: '/hotspot-wifi-ehpad-colombes-colombes-residence-esterel-6608.html',ville: 'Colombes', activite: 'EHPAD'},
{lat: 48.84033400, lng: 2.17323200,
nom: 'Garches-Residence Isis',url: '/hotspot-wifi-ehpad-garches-garches-residence-isis-6625.html',ville: 'Garches', activite: 'EHPAD'},
{lat: 48.92994300, lng: 2.29921180,
nom: 'Gennevilliers-Residence Villa Caroline',url: '/hotspot-wifi-ehpad-gennevilliers-gennevilliers-residence-villa-caroline-6627.html',ville: 'Gennevilliers', activite: 'EHPAD'},
{lat: 48.83088220, lng: 2.23381630,
nom: 'Hotel de France',url: '/hotspot-wifi-restaurant-boulogne-billancourt-hotel-de-france-6772.html',ville: 'Boulogne Billancourt', activite: 'Restaurant'},
{lat: 48.87672340, lng: 2.19520310,
nom: 'Hôtel Bellevue',url: '/hotspot-wifi-hotel-rueil-malmaison-hotel-bellevue-6778.html',ville: 'Rueil Malmaison', activite: 'Hôtel'},
{lat: 48.84065580, lng: 2.18164990,
nom: 'Garches-Residence Services Seniors les Templitudes',url: '/hotspot-wifi-ehpad-garches-garches-residence-services-seniors-les-templitudes-7007.html',ville: 'Garches', activite: 'EHPAD'},
{lat: 48.89621270, lng: 2.21954020,
nom: 'Arena',url: '/hotspot-wifi-hotel-nanterre-arena-7674.html',ville: 'Nanterre', activite: 'Hôtel'},
{lat: 48.90277790, lng: 2.30489390,
nom: 'Médiathèque',url: '/hotspot-wifi-mairie-clichy-mediatheque-7910.html',ville: 'Clichy', activite: 'Mairie'},
{lat: 48.78789200, lng: 2.29250500,
nom: 'Sarl Residence Isidore - Hotel Villa Renaissance',url: '/hotspot-wifi-hotel-fontenay-aux-roses-sarl-residence-isidore-hotel-villa-renaissance-9411.html',ville: 'Fontenay Aux Roses', activite: 'Hôtel'},
{lat: 48.89190100, lng: 2.19468500,
nom: 'Fcn Hôtel Coin Tranquille',url: '/hotspot-wifi-hotel-nanterres-fcn-hotel-coin-tranquille-9477.html',ville: 'Nanterres', activite: 'Hôtel'},
{lat: 48.89643150, lng: 2.29734950,
nom: 'Au Cadran Bleu',url: '/hotspot-wifi-bar-restaurant-levallois-perret-au-cadran-bleu-9563.html',ville: 'Levallois-Perret', activite: 'Bar restaurant'},
{lat: 48.80990950, lng: 2.32122590,
nom: 'Cercle Athlétique de Montrouge',url: '/hotspot-wifi-collectif-montrouge-cercle-athletique-de-montrouge-9859.html',ville: 'Montrouge', activite: 'Collectif'},
{lat: 48.89859700, lng: 2.30752600,
nom: 'Hotel National',url: '/hotspot-wifi-hotel-clichy-hotel-national-10053.html',ville: 'Clichy', activite: 'Hôtel'},
{lat: 48.89813800, lng: 2.30685600,
nom: 'Hôtel Modern',url: '/hotspot-wifi-hotel-clichy-hotel-modern-10142.html',ville: 'Clichy', activite: 'Hôtel'},
{lat: 48.88706500, lng: 2.19183400,
nom: 'Hôtel des Oliviers',url: '/hotspot-wifi-hotel-nanterre-hotel-des-oliviers-12065.html',ville: 'Nanterre', activite: 'Hôtel'},
{lat: 48.90997100, lng: 2.28281100,
nom: 'Epnak Institut Gustave Baguer',url: '/hotspot-wifi-ecole-asnieres-sur-seine-epnak-institut-gustave-baguer-12232.html',ville: 'Asnieres-Sur-Seine', activite: 'Ecole'},
{lat: 48.82259900, lng: 2.20876400,
nom: 'Fiteco Sevres',url: '/hotspot-wifi-societe-sevres-fiteco-sevres-12290.html',ville: 'Sevres', activite: 'Société'},
{lat: 48.86644630, lng: 2.22452270,
nom: 'Suresnes-Residence Tiers Temps',url: '/hotspot-wifi-ehpad-suresnes-suresnes-residence-tiers-temps-12466.html',ville: 'Suresnes', activite: 'EHPAD'}
]