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 markerTRLISTRL51066 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.4247414352876, -6.20302677154541)
});
google.maps.event.addListener(markerTRLISTRL51066, 'click', onMarkerClick);
markers.push(markerTRLISTRL51066);
// 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 markerTRLISTRLIS73990 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.41073, -6.145138)
});
google.maps.event.addListener(markerTRLISTRLIS73990, 'click', onMarkerClick);
markers.push(markerTRLISTRLIS73990);
// 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 markerTRLISTRLIS81666 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.655878, -6.199118)
});
google.maps.event.addListener(markerTRLISTRLIS81666, 'click', onMarkerClick);
markers.push(markerTRLISTRLIS81666);
// 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 markerTRLIS26145798 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.4071, -6.196922)
});
google.maps.event.addListener(markerTRLIS26145798, 'click', onMarkerClick);
markers.push(markerTRLIS26145798);
// 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 markerTRHTRH84331 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.64852, -5.81963)
});
google.maps.event.addListener(markerTRHTRH84331, 'click', onMarkerClick);
markers.push(markerTRHTRH84331);
// 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 markerTRHTRH96049 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.6256265684486, -5.56026601019459)
});
google.maps.event.addListener(markerTRHTRH96049, 'click', onMarkerClick);
markers.push(markerTRHTRH96049);
// 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 markerTRLTRL96226 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.5025534, -5.837196)
});
google.maps.event.addListener(markerTRLTRL96226, 'click', onMarkerClick);
markers.push(markerTRLTRL96226);
// 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 markerTRHTRH96599 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.6358816, -5.835109)
});
google.maps.event.addListener(markerTRHTRH96599, 'click', onMarkerClick);
markers.push(markerTRHTRH96599);
// 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 markerTRLISTRLIS96808 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.3421730642168, -6.02949753684997)
});
google.maps.event.addListener(markerTRLISTRLIS96808, 'click', onMarkerClick);
markers.push(markerTRLISTRLIS96808);
// 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 markerTRLISTRLIS96978 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.4199777110975, -6.13489960845946)
});
google.maps.event.addListener(markerTRLISTRLIS96978, 'click', onMarkerClick);
markers.push(markerTRLISTRLIS96978);
// 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 markerTRHTRH97093 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.6014459023665, -5.85937586011886)
});
google.maps.event.addListener(markerTRHTRH97093, 'click', onMarkerClick);
markers.push(markerTRHTRH97093);
// 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 markerTRLTRL97183 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.8566, -5.82284)
});
google.maps.event.addListener(markerTRLTRL97183, 'click', onMarkerClick);
markers.push(markerTRLTRL97183);
// 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 markerTRLISTRLIS96977 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.4199777110975, -6.13489960845946)
});
google.maps.event.addListener(markerTRLISTRLIS96977, 'click', onMarkerClick);
markers.push(markerTRLISTRLIS96977);
// 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 markerTRLISTRLIS97213 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.5611297808817, -6.14834220290848)
});
google.maps.event.addListener(markerTRLISTRLIS97213, 'click', onMarkerClick);
markers.push(markerTRLISTRLIS97213);
// 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 markerTRLISTRLIS97595 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.419514, -6.1392811)
});
google.maps.event.addListener(markerTRLISTRLIS97595, 'click', onMarkerClick);
markers.push(markerTRLISTRLIS97595);
// 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 markerTRLISTRLIS96384 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.6185965, -6.2084829)
});
google.maps.event.addListener(markerTRLISTRLIS96384, 'click', onMarkerClick);
markers.push(markerTRLISTRLIS96384);
// 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 markerTRLISTRLIS97643 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.4946971288745, -6.05877568577667)
});
google.maps.event.addListener(markerTRLISTRLIS97643, 'click', onMarkerClick);
markers.push(markerTRLISTRLIS97643);
// 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 markerTRLISTRLIS97721 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.4020173575541, -6.20621893246157)
});
google.maps.event.addListener(markerTRLISTRLIS97721, 'click', onMarkerClick);
markers.push(markerTRLISTRLIS97721);
// 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 markerTRETRE97709 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.5757829097792, -5.87411180419921)
});
google.maps.event.addListener(markerTRETRE97709, 'click', onMarkerClick);
markers.push(markerTRETRE97709);
// 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 markerTRLTRL96667 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.37406, -5.89495)
});
google.maps.event.addListener(markerTRLTRL96667, 'click', onMarkerClick);
markers.push(markerTRLTRL96667);
// 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 markerTRLISTRLIS97939 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.4082493296232, -6.15228546528543)
});
google.maps.event.addListener(markerTRLISTRLIS97939, 'click', onMarkerClick);
markers.push(markerTRLISTRLIS97939);
// 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 markerTRLISTRLIS98071 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.4162978041289, -6.25747457427974)
});
google.maps.event.addListener(markerTRLISTRLIS98071, 'click', onMarkerClick);
markers.push(markerTRLISTRLIS98071);
// 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 markerTRLTRL96427 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(55.1702482, -6.5053456)
});
google.maps.event.addListener(markerTRLTRL96427, 'click', onMarkerClick);
markers.push(markerTRLTRL96427);
// 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 markerTRLISTRLIS96975 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.4198767374144, -6.13469018252563)
});
google.maps.event.addListener(markerTRLISTRLIS96975, 'click', onMarkerClick);
markers.push(markerTRLISTRLIS96975);
// 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 markerTRLTRL92876 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.5438644, -5.9484101)
});
google.maps.event.addListener(markerTRLTRL92876, 'click', onMarkerClick);
markers.push(markerTRLTRL92876);
// 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 markerTRLISTRLIS96974 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.4197717094062, -6.13447045501708)
});
google.maps.event.addListener(markerTRLISTRLIS96974, 'click', onMarkerClick);
markers.push(markerTRLISTRLIS96974);
// 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 markerTRLTRL97998 = new google.maps.Marker({
map: map,
icon: markerimg,
position: new google.maps.LatLng(54.5021556, -5.9433354)
});
google.maps.event.addListener(markerTRLTRL97998, 'click', onMarkerClick);
markers.push(markerTRLTRL97998);
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);