var map;
function setMarkerContent(marker) {
var content = '
';
content += '
';
content += '
'+marker.hotelName+'';
content += '
'
content += 'från '+marker.hotelPrice+' kr';
content += '
';
return content;
}
function initialize() {
var mapOptions = {
zoom: 12,
center: new google.maps.LatLng(48.8574278,2.3342193)
};
map = new google.maps.Map(document.getElementById('map-canvas'),
mapOptions);
var image = {
url: '/images/icon_map_hotel.png',
anchor: new google.maps.Point(15, 34)
};
var infowindow = new google.maps.InfoWindow({
content: ''
});
var markers = [];
markers.push(new google.maps.Marker({
position: new google.maps.LatLng(48.8555502,2.2926772),
map: map,
icon: image,
hotelName: 'Pullman Paris Tour Eiffel',
hotelURL: '/hotell/pullman-paris-tour-eiffel/',
hotelStars: 4,
hotelPrice: 2460,
hotelImage: '/bilder/hotell/1/pullman-paris-tour-eiffel-t.jpg',
title: 'Pullman Paris Tour Eiffel'
}));
markers[markers.length-1].addListener('click', function() {
infowindow.setContent(setMarkerContent(this));
infowindow.open(map, this);
});
markers.push(new google.maps.Marker({
position: new google.maps.LatLng(48.8750109,2.2934813),
map: map,
icon: image,
hotelName: 'Splendid Etoile Hotel',
hotelURL: '/hotell/splendid-etoile-hotel/',
hotelStars: 4,
hotelPrice: 1671,
hotelImage: '/bilder/hotell/2/splendid-etoile-hotel-t.jpg',
title: 'Splendid Etoile Hotel'
}));
markers[markers.length-1].addListener('click', function() {
infowindow.setContent(setMarkerContent(this));
infowindow.open(map, this);
});
markers.push(new google.maps.Marker({
position: new google.maps.LatLng(48.8457707,2.2982995),
map: map,
icon: image,
hotelName: 'Best Western Hotel Eiffel Cambronne',
hotelURL: '/hotell/best-western-hotel-eiffel-cambronne/',
hotelStars: 3,
hotelPrice: 771,
hotelImage: '/bilder/hotell/3/best-western-hotel-eiffel-cambronne-t.jpg',
title: 'Best Western Hotel Eiffel Cambronne'
}));
markers[markers.length-1].addListener('click', function() {
infowindow.setContent(setMarkerContent(this));
infowindow.open(map, this);
});
markers.push(new google.maps.Marker({
position: new google.maps.LatLng(48.8780189,2.3526541),
map: map,
icon: image,
hotelName: 'ibis Paris Gare du Nord la Fayette',
hotelURL: '/hotell/ibis-paris-gare-du-nord-la-fayette/',
hotelStars: 3,
hotelPrice: 973,
hotelImage: '/bilder/hotell/4/ibis-paris-gare-du-nord-la-fayette-t.jpg',
title: 'ibis Paris Gare du Nord la Fayette'
}));
markers[markers.length-1].addListener('click', function() {
infowindow.setContent(setMarkerContent(this));
infowindow.open(map, this);
});
markers.push(new google.maps.Marker({
position: new google.maps.LatLng(48.8739818,2.3500926),
map: map,
icon: image,
hotelName: 'Mercure Paris Opera Grands Boulevards',
hotelURL: '/hotell/mercure-paris-opera-grands-boulevards/',
hotelStars: 3,
hotelPrice: 1019,
hotelImage: '/bilder/hotell/5/mercure-paris-opera-grands-boulevards-t.jpg',
title: 'Mercure Paris Opera Grands Boulevards'
}));
markers[markers.length-1].addListener('click', function() {
infowindow.setContent(setMarkerContent(this));
infowindow.open(map, this);
});
markers.push(new google.maps.Marker({
position: new google.maps.LatLng(48.841546,2.3246679),
map: map,
icon: image,
hotelName: 'Hotel Odessa Montparnasse',
hotelURL: '/hotell/hotel-odessa-montparnasse/',
hotelStars: 2,
hotelPrice: 902,
hotelImage: '/bilder/hotell/6/hotel-odessa-montparnasse-t.jpg',
title: 'Hotel Odessa Montparnasse'
}));
markers[markers.length-1].addListener('click', function() {
infowindow.setContent(setMarkerContent(this));
infowindow.open(map, this);
});
markers.push(new google.maps.Marker({
position: new google.maps.LatLng(48.8667971,2.3257918),
map: map,
icon: image,
hotelName: 'Meliá Vendome',
hotelURL: '/hotell/melia-vendome/',
hotelStars: 4,
hotelPrice: 1786,
hotelImage: '/bilder/hotell/7/melia-vendome-t.jpg',
title: 'Meliá Vendome'
}));
markers[markers.length-1].addListener('click', function() {
infowindow.setContent(setMarkerContent(this));
infowindow.open(map, this);
});
markers.push(new google.maps.Marker({
position: new google.maps.LatLng(48.8650919,2.3418806),
map: map,
icon: image,
hotelName: 'Hotel Odyssey by Elegancia',
hotelURL: '/hotell/hotel-odyssey-by-elegancia/',
hotelStars: 3,
hotelPrice: 708,
hotelImage: '/bilder/hotell/8/hotel-odyssey-by-elegancia-t.jpg',
title: 'Hotel Odyssey by Elegancia'
}));
markers[markers.length-1].addListener('click', function() {
infowindow.setContent(setMarkerContent(this));
infowindow.open(map, this);
});
markers.push(new google.maps.Marker({
position: new google.maps.LatLng(48.8552832,2.3255035),
map: map,
icon: image,
hotelName: 'K&K Hotel Cayre',
hotelURL: '/hotell/kk-hotel-cayre/',
hotelStars: 4,
hotelPrice: 1532,
hotelImage: '/bilder/hotell/9/kk-hotel-cayre-t.jpg',
title: 'K&K Hotel Cayre'
}));
markers[markers.length-1].addListener('click', function() {
infowindow.setContent(setMarkerContent(this));
infowindow.open(map, this);
});
}
google.maps.event.addDomListener(window, 'load', initialize);