function initialize() { var mapOptions = { zoom: 11, center: new google.maps.LatLng(54.59673227, -5.92712402), mapTypeId: google.maps.MapTypeId.ROADMAP, scrollwheel: false }; map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions); var markers = []; // Plot Properties var infoWindow = new google.maps.InfoWindow({ maxWidth: 300 }); var onMarkerClick = function() { var marker = this; var latLng = marker.getPosition(); infoWindow.setContent(''); infoWindow.open(map, marker); }; google.maps.event.addListener(map, 'click', function() { infoWindow.close(); }); var markerimg ='/images/marker-new.png'; var markerTRLTRL89330 = new google.maps.Marker({ map: map, icon: markerimg, position: new google.maps.LatLng(54.54495, -5.97917) }); google.maps.event.addListener(markerTRLTRL89330, 'click', onMarkerClick); markers.push(markerTRLTRL89330); // Plot Properties var infoWindow = new google.maps.InfoWindow({ maxWidth: 300 }); var onMarkerClick = function() { var marker = this; var latLng = marker.getPosition(); infoWindow.setContent(''); infoWindow.open(map, marker); }; google.maps.event.addListener(map, 'click', function() { infoWindow.close(); }); var markerimg ='/images/marker-new.png'; var markerTRLTRL97267 = new google.maps.Marker({ map: map, icon: markerimg, position: new google.maps.LatLng(54.5523061, -6.0056554) }); google.maps.event.addListener(markerTRLTRL97267, 'click', onMarkerClick); markers.push(markerTRLTRL97267); // Plot Properties var infoWindow = new google.maps.InfoWindow({ maxWidth: 300 }); var onMarkerClick = function() { var marker = this; var latLng = marker.getPosition(); infoWindow.setContent(''); infoWindow.open(map, marker); }; google.maps.event.addListener(map, 'click', function() { infoWindow.close(); }); var markerimg ='/images/marker-new.png'; var markerTRLTRL97510 = new google.maps.Marker({ map: map, icon: markerimg, position: new google.maps.LatLng(54.5375831, -6.0271459) }); google.maps.event.addListener(markerTRLTRL97510, 'click', onMarkerClick); markers.push(markerTRLTRL97510); // Plot Properties var infoWindow = new google.maps.InfoWindow({ maxWidth: 300 }); var onMarkerClick = function() { var marker = this; var latLng = marker.getPosition(); infoWindow.setContent(''); infoWindow.open(map, marker); }; google.maps.event.addListener(map, 'click', function() { infoWindow.close(); }); var markerimg ='/images/marker-new.png'; var markerTRLTRL73383 = new google.maps.Marker({ map: map, icon: markerimg, position: new google.maps.LatLng(54.5311162, -5.9999949) }); google.maps.event.addListener(markerTRLTRL73383, 'click', onMarkerClick); markers.push(markerTRLTRL73383); // Plot Properties var infoWindow = new google.maps.InfoWindow({ maxWidth: 300 }); var onMarkerClick = function() { var marker = this; var latLng = marker.getPosition(); infoWindow.setContent(''); infoWindow.open(map, marker); }; google.maps.event.addListener(map, 'click', function() { infoWindow.close(); }); var markerimg ='/images/marker-new.png'; var markerTRLTRL97735 = new google.maps.Marker({ map: map, icon: markerimg, position: new google.maps.LatLng(54.5610148, -6.0620603) }); google.maps.event.addListener(markerTRLTRL97735, 'click', onMarkerClick); markers.push(markerTRLTRL97735); // Plot Properties var infoWindow = new google.maps.InfoWindow({ maxWidth: 300 }); var onMarkerClick = function() { var marker = this; var latLng = marker.getPosition(); infoWindow.setContent(''); infoWindow.open(map, marker); }; google.maps.event.addListener(map, 'click', function() { infoWindow.close(); }); var markerimg ='/images/marker-new.png'; var markerTRLTRL97850 = new google.maps.Marker({ map: map, icon: markerimg, position: new google.maps.LatLng(54.5402485204142, -6.01607179408964) }); google.maps.event.addListener(markerTRLTRL97850, 'click', onMarkerClick); markers.push(markerTRLTRL97850); // Plot Properties var infoWindow = new google.maps.InfoWindow({ maxWidth: 300 }); var onMarkerClick = function() { var marker = this; var latLng = marker.getPosition(); infoWindow.setContent(''); infoWindow.open(map, marker); }; google.maps.event.addListener(map, 'click', function() { infoWindow.close(); }); var markerimg ='/images/marker-new.png'; var markerTRLISTRLIS98075 = new google.maps.Marker({ map: map, icon: markerimg, position: new google.maps.LatLng(54.5374343, -6.026861) }); google.maps.event.addListener(markerTRLISTRLIS98075, 'click', onMarkerClick); markers.push(markerTRLISTRLIS98075); var bounds = new google.maps.LatLngBounds(); for (var i = 0; i < markers.length; i++) { bounds.extend(markers[i].getPosition()); } map.fitBounds(bounds); google.maps.event.addListener(infoWindow, 'domready', function() { var iwOuter = $('.gm-style-iw'); var iwBackground = iwOuter.prev(); iwBackground.children(':nth-child(2)').css({'display' : 'none'}); iwBackground.children(':nth-child(4)').css({'display' : 'none'}); iwOuter.parent().parent().css({left: '10px'}); iwBackground.children(':nth-child(1)').attr('style', function(i,s){ return s + 'left: 155px !important;'}); iwBackground.children(':nth-child(3)').attr('style', function(i,s){ return s + 'left: 155px !important;'}); iwBackground.children(':nth-child(3)').find('div').children().css({'box-shadow': '', 'z-index' : '1'}); var iwCloseBtn = iwOuter.next(); iwCloseBtn.css({'display': 'none'}); }); var clusterStyles = [ { textColor: 'white', url: '/images/cluster-new.png', height: 50, width: 50 }, { textColor: 'white', url: '/images/cluster-new2.png', height: 50, width: 50 }, { textColor: 'white', url: '/images/cluster-new.png', height: 50, width: 50 } ]; // Clusters options. var clusterOp = { gridSize: 50, styles: clusterStyles, maxZoom: 15 }; // Construct the Clusters. var markerCluster = new MarkerClusterer(map, markers, clusterOp); } //google.maps.event.addDomListener(window, 'load', initialize);