var map1; function map1_initialize() { if (GBrowserIsCompatible()) { var latlng1 = [ [new GLatLng(55.62994,12.65102), '
Hilton Copenhagen Airport Reviews

'],[new GLatLng(55.63705,12.64169), '
Quality Hotel Airport Dan Reviews

'],[new GLatLng(55.62314,12.6162), '
Best Western Bel Air Copenhagen Reviews

'],[new GLatLng(55.62313,12.61623), '
Best Western Bel Air Copenhage Reviews

']]; var latlngbounds = new GLatLngBounds(); var icon = new GIcon(); icon.image = "/images/hotel.png"; icon.shadow = "/images/hotelshadow.png"; icon.iconSize = new GSize(20, 34); icon.shadowSize = new GSize(37, 34); icon.iconAnchor = new GPoint(9, 34); icon.infoWindowAnchor = new GPoint(9, 2); map1 = new GMap2(document.getElementById('HotelMap')); map1.addControl(new GSmallMapControl()); map1.addControl(new GMenuMapTypeControl()); map1.setCenter(new GLatLng(0,0), 0); for (var i = 0; i < latlng1.length; i++) { (function () { var marker = new GMarker(latlng1[i][0],icon); var html = latlng1[i][1]; GEvent.addListener(marker, 'click', function() { marker.openInfoWindowHtml(html); }); map1.addOverlay(marker); latlngbounds.extend(latlng1[i][0]); })(); } map1.setCenter(latlngbounds.getCenter(), map1.getBoundsZoomLevel(latlngbounds)); } } GEvent.addDomListener(window, 'load', map1_initialize);