function initialize() {
var mapOptions = {
center: new google.maps.LatLng(54.59673227, -5.92712402),
zoom: 11,
mapTypeId: google.maps.MapTypeId.ROADMAP,
scrollwheel: false,
panControl: true,
zoomControl: true,
gestureHandling: 'auto',
mapTypeControl: true,
mapTypeControlOptions: {
style: google.maps.MapTypeControlStyle.DROPDOWN_MENU
},
navigationControl: true,
zoomControlOptions: {
style: google.maps.ZoomControlStyle.SMALL,
position: google.maps.ControlPosition.RIGHT_TOP,
},
streetViewControlOptions: {
position: google.maps.ControlPosition.RIGHT_TOP
}
};
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/map-marker-new.png';
var icon = {
url: "/images/map-pin-new.svg",
anchor: new google.maps.Point(25,50),
scaledSize: new google.maps.Size(45,45)
}
var marker30950990 = new google.maps.Marker({
map: map,
icon: icon,
position: new google.maps.LatLng(54.664463, -5.664255)
});
google.maps.event.addListener(marker30950990, 'click', onMarkerClick);
markers.push(marker30950990);
// 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/map-marker-new.png';
var icon = {
url: "/images/map-pin-new.svg",
anchor: new google.maps.Point(25,50),
scaledSize: new google.maps.Size(45,45)
}
var marker32990455 = new google.maps.Marker({
map: map,
icon: icon,
position: new google.maps.LatLng(54.65345, -5.709687)
});
google.maps.event.addListener(marker32990455, 'click', onMarkerClick);
markers.push(marker32990455);
// 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/map-marker-new.png';
var icon = {
url: "/images/map-pin-new.svg",
anchor: new google.maps.Point(25,50),
scaledSize: new google.maps.Size(45,45)
}
var marker33009733 = new google.maps.Marker({
map: map,
icon: icon,
position: new google.maps.LatLng(54.655345, -5.693813)
});
google.maps.event.addListener(marker33009733, 'click', onMarkerClick);
markers.push(marker33009733);
// 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/map-marker-new.png';
var icon = {
url: "/images/map-pin-new.svg",
anchor: new google.maps.Point(25,50),
scaledSize: new google.maps.Size(45,45)
}
var marker33033004 = new google.maps.Marker({
map: map,
icon: icon,
position: new google.maps.LatLng(54.65607, -5.709935)
});
google.maps.event.addListener(marker33033004, 'click', onMarkerClick);
markers.push(marker33033004);
// 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/map-marker-new.png';
var icon = {
url: "/images/map-pin-new.svg",
anchor: new google.maps.Point(25,50),
scaledSize: new google.maps.Size(45,45)
}
var marker33052638 = new google.maps.Marker({
map: map,
icon: icon,
position: new google.maps.LatLng(54.66267, -5.675012)
});
google.maps.event.addListener(marker33052638, 'click', onMarkerClick);
markers.push(marker33052638);
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: '0px'});
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: 40,
styles: clusterStyles,
maxZoom: 15
};
// Construct the Clusters.
var markerCluster = new MarkerClusterer(map, markers, clusterOp);
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.addDomListener(window, 'load', initialize);