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 markerMFL786046 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(55.0077248, -6.67844270000001)
});
google.maps.event.addListener(markerMFL786046, 'click', onMarkerClick);
markers.push(markerMFL786046);
// 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 markerMFL786111 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(55.1182007265042, -6.64032965745548)
});
google.maps.event.addListener(markerMFL786111, 'click', onMarkerClick);
markers.push(markerMFL786111);
// 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 markerMFL786644 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(55.1690025, -6.70950730000004)
});
google.maps.event.addListener(markerMFL786644, 'click', onMarkerClick);
markers.push(markerMFL786644);
// 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 markerMFL786700 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(55.1800762, -6.69872550000002)
});
google.maps.event.addListener(markerMFL786700, 'click', onMarkerClick);
markers.push(markerMFL786700);
// 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 markerMFL786903 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.8507985, -6.2982087)
});
google.maps.event.addListener(markerMFL786903, 'click', onMarkerClick);
markers.push(markerMFL786903);
// 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 markerMFL786950 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(55.1688256, -6.7090837)
});
google.maps.event.addListener(markerMFL786950, 'click', onMarkerClick);
markers.push(markerMFL786950);
// 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 markerMFL787012 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(55.1213229, -6.6865582)
});
google.maps.event.addListener(markerMFL787012, 'click', onMarkerClick);
markers.push(markerMFL787012);
// 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 markerMFL787037 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.4823696, -6.3539559)
});
google.maps.event.addListener(markerMFL787037, 'click', onMarkerClick);
markers.push(markerMFL787037);
// 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 markerMFL787040 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(55.1689548, -6.7089258)
});
google.maps.event.addListener(markerMFL787040, 'click', onMarkerClick);
markers.push(markerMFL787040);
// 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 markerMFL787054 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(55.0721875, -6.5181803)
});
google.maps.event.addListener(markerMFL787054, 'click', onMarkerClick);
markers.push(markerMFL787054);
// 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 markerMFL787055 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.5788740556008, -5.95229519881134)
});
google.maps.event.addListener(markerMFL787055, 'click', onMarkerClick);
markers.push(markerMFL787055);
// 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 markerMFL787063 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(55.1270357, -6.6684122)
});
google.maps.event.addListener(markerMFL787063, 'click', onMarkerClick);
markers.push(markerMFL787063);
// 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 markerMFL787064 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(55.104085380489, -6.62930897187501)
});
google.maps.event.addListener(markerMFL787064, 'click', onMarkerClick);
markers.push(markerMFL787064);
// 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 markerMFL787084 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(55.1344418, -6.65732)
});
google.maps.event.addListener(markerMFL787084, 'click', onMarkerClick);
markers.push(markerMFL787084);
// 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 markerMFL787085 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(55.0798675, -6.5894666)
});
google.maps.event.addListener(markerMFL787085, 'click', onMarkerClick);
markers.push(markerMFL787085);
// 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 markerMFL787101 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(55.1309679, -6.327299)
});
google.maps.event.addListener(markerMFL787101, 'click', onMarkerClick);
markers.push(markerMFL787101);
// 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 markerMFL787125 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(55.1984323, -6.5177241)
});
google.maps.event.addListener(markerMFL787125, 'click', onMarkerClick);
markers.push(markerMFL787125);
// 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 markerMFL787178 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(55.0707932, -6.4947293)
});
google.maps.event.addListener(markerMFL787178, 'click', onMarkerClick);
markers.push(markerMFL787178);
// 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 markerMFL787194 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(55.203606, -6.2603761)
});
google.maps.event.addListener(markerMFL787194, 'click', onMarkerClick);
markers.push(markerMFL787194);
// 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 markerMFL787203 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(55.1294224, -6.6643672)
});
google.maps.event.addListener(markerMFL787203, 'click', onMarkerClick);
markers.push(markerMFL787203);
// 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 markerMFL787204 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(55.1228683, -6.6658094)
});
google.maps.event.addListener(markerMFL787204, 'click', onMarkerClick);
markers.push(markerMFL787204);
// 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 markerMFL787205 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(55.080233, -6.58776)
});
google.maps.event.addListener(markerMFL787205, 'click', onMarkerClick);
markers.push(markerMFL787205);
// 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 markerMFL787206 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(55.1258155, -6.6657909)
});
google.maps.event.addListener(markerMFL787206, 'click', onMarkerClick);
markers.push(markerMFL787206);
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);