var mapProp;
var bounds;
var map;
function initialize(){
var mapIconGreen = 'img/map-icon-green.png';
var mapIconDarkblue = {
url: "img/map-icon-darkblue.png",
size: new google.maps.Size(23,20), // the size it should be on the map
scaledSize: new google.maps.Size(23,20), // the normal size of the image is 90x1100 because Retina asks double size.
};
var mapIconBlue = {
url: "img/map-icon-blue.png",
size: new google.maps.Size(26,20), // the size it should be on the map
scaledSize: new google.maps.Size(26,20), // the normal size of the image is 90x1100 because Retina asks double size.
};
var mapIconOrange = {
url: "img/map-icon-orange.png",
size: new google.maps.Size(15,20), // the size it should be on the map
scaledSize: new google.maps.Size(15,20), // the normal size of the image is 90x1100 because Retina asks double size.
};
/* var myCenter=new google.maps.LatLng(avglat,avglng); */ //avg Lat and long
var myCenter;
var myCenter=new google.maps.LatLng(51.5595230, -0.1852880);
var markerpos_prop = new google.maps.LatLng(51.567707, -0.183159);
var iwcontent_prop = '
NORTH END WAY, HAMPSTEAD, NW3
';
var myCenter=new google.maps.LatLng(51.567707, -0.183159);
mapProp = {
scrollwheel: false,
center: myCenter,
zoom:12,
mapTypeId: google.maps.MapTypeId.ROADMAP,
mapId: "propertyMap_MAP_ID"
};
map = new google.maps.Map(document.getElementById("propertyMap"),mapProp);
// var transitLayer = new google.maps.TransitLayer();
// transitLayer.setMap(map);
bounds = map.getBounds();
// bounds = new google.maps.LatLngBounds();
// bounds.extend(new google.maps.LatLng(51.5605230, -0.1852880));
// bounds.extend(new google.maps.LatLng(51.5585230, -0.1852880));
/* bounds.extend(new google.maps.LatLng(51.5680230, -0.1852880)); */
var marker_prop = new google.maps.Marker({
position: markerpos_prop,
icon: mapIconGreen,
});
marker_prop.setMap(map);
var infowindowmarker = new google.maps.InfoWindow({
content:iwcontent_prop
});
google.maps.event.addListener(marker_prop, 'mouseover' , function() {
infowindowmarker.open(map,marker_prop);
});
google.maps.event.addListener(marker_prop, 'mouseout' , function() {
infowindowmarker.close(map,marker_prop);
});
var avglat = ".$avglat;var avglng = ".$avglng;var markerpos01 = new google.maps.LatLng(51.5365160,-0.1467240);var marker01 = new google.maps.Marker({
position: markerpos01,
icon: mapIconDarkblue
,
/* title:'Click to zoom' */
});
marker01.setMap(map);markers_schools.push(marker01)
var infowindowmarker01 = new google.maps.InfoWindow({
content:"North Bridge House Senior School
"
});
google.maps.event.addListener(marker01, 'mouseover' , function() {
infowindowmarker01.open(map,marker01);
});
google.maps.event.addListener(marker01, 'mouseout' , function() {
infowindowmarker01.close(map,marker01);
});
google.maps.event.addListener(marker01, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name0-1').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name0-1').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name0-1').click();
});var markerpos11 = new google.maps.LatLng(51.5579220,-0.1903780);var marker11 = new google.maps.Marker({
position: markerpos11,
icon: mapIconDarkblue
,
/* title:'Click to zoom' */
});
marker11.setMap(map);markers_schools.push(marker11)
var infowindowmarker11 = new google.maps.InfoWindow({
content:"St Margaret's School
"
});
google.maps.event.addListener(marker11, 'mouseover' , function() {
infowindowmarker11.open(map,marker11);
});
google.maps.event.addListener(marker11, 'mouseout' , function() {
infowindowmarker11.close(map,marker11);
});
google.maps.event.addListener(marker11, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name1-1').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name1-1').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name1-1').click();
});var markerpos21 = new google.maps.LatLng(51.5734070,-0.1554630);var marker21 = new google.maps.Marker({
position: markerpos21,
icon: mapIconDarkblue
,
/* title:'Click to zoom' */
});
marker21.setMap(map);markers_schools.push(marker21)
var infowindowmarker21 = new google.maps.InfoWindow({
content:"Highgate School
"
});
google.maps.event.addListener(marker21, 'mouseover' , function() {
infowindowmarker21.open(map,marker21);
});
google.maps.event.addListener(marker21, 'mouseout' , function() {
infowindowmarker21.close(map,marker21);
});
google.maps.event.addListener(marker21, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name2-1').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name2-1').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name2-1').click();
});var markerpos31 = new google.maps.LatLng(51.5568090,-0.1789850);var marker31 = new google.maps.Marker({
position: markerpos31,
icon: mapIconDarkblue
,
/* title:'Click to zoom' */
});
marker31.setMap(map);markers_schools.push(marker31)
var infowindowmarker31 = new google.maps.InfoWindow({
content:"University College School
"
});
google.maps.event.addListener(marker31, 'mouseover' , function() {
infowindowmarker31.open(map,marker31);
});
google.maps.event.addListener(marker31, 'mouseout' , function() {
infowindowmarker31.close(map,marker31);
});
google.maps.event.addListener(marker31, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name3-1').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name3-1').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name3-1').click();
});var markerpos41 = new google.maps.LatLng(51.5695230,-0.1852880);var marker41 = new google.maps.Marker({
position: markerpos41,
icon: mapIconDarkblue
,
/* title:'Click to zoom' */
});
marker41.setMap(map);markers_schools.push(marker41)
var infowindowmarker41 = new google.maps.InfoWindow({
content:"King Alfred School
"
});
google.maps.event.addListener(marker41, 'mouseover' , function() {
infowindowmarker41.open(map,marker41);
});
google.maps.event.addListener(marker41, 'mouseout' , function() {
infowindowmarker41.close(map,marker41);
});
google.maps.event.addListener(marker41, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name4-1').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name4-1').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name4-1').click();
});var markerpos51 = new google.maps.LatLng(51.5450430,-0.1712000);var marker51 = new google.maps.Marker({
position: markerpos51,
icon: mapIconDarkblue
,
/* title:'Click to zoom' */
});
marker51.setMap(map);markers_schools.push(marker51)
var infowindowmarker51 = new google.maps.InfoWindow({
content:"Hall School
"
});
google.maps.event.addListener(marker51, 'mouseover' , function() {
infowindowmarker51.open(map,marker51);
});
google.maps.event.addListener(marker51, 'mouseout' , function() {
infowindowmarker51.close(map,marker51);
});
google.maps.event.addListener(marker51, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name5-1').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name5-1').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name5-1').click();
});var markerpos61 = new google.maps.LatLng(51.5533730,-0.1686510);var marker61 = new google.maps.Marker({
position: markerpos61,
icon: mapIconDarkblue
,
/* title:'Click to zoom' */
});
marker61.setMap(map);markers_schools.push(marker61)
var infowindowmarker61 = new google.maps.InfoWindow({
content:"Hampstead Hill School
"
});
google.maps.event.addListener(marker61, 'mouseover' , function() {
infowindowmarker61.open(map,marker61);
});
google.maps.event.addListener(marker61, 'mouseout' , function() {
infowindowmarker61.close(map,marker61);
});
google.maps.event.addListener(marker61, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name6-1').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name6-1').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name6-1').click();
});var markerpos71 = new google.maps.LatLng(51.5521340,-0.1715090);var marker71 = new google.maps.Marker({
position: markerpos71,
icon: mapIconDarkblue
,
/* title:'Click to zoom' */
});
marker71.setMap(map);markers_schools.push(marker71)
var infowindowmarker71 = new google.maps.InfoWindow({
content:"Lyndhurst House School
"
});
google.maps.event.addListener(marker71, 'mouseover' , function() {
infowindowmarker71.open(map,marker71);
});
google.maps.event.addListener(marker71, 'mouseout' , function() {
infowindowmarker71.close(map,marker71);
});
google.maps.event.addListener(marker71, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name7-1').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name7-1').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name7-1').click();
});var markerpos81 = new google.maps.LatLng(51.5740710,-0.1956120);var marker81 = new google.maps.Marker({
position: markerpos81,
icon: mapIconDarkblue
,
/* title:'Click to zoom' */
});
marker81.setMap(map);markers_schools.push(marker81)
var infowindowmarker81 = new google.maps.InfoWindow({
content:"Golders Hill School
"
});
google.maps.event.addListener(marker81, 'mouseover' , function() {
infowindowmarker81.open(map,marker81);
});
google.maps.event.addListener(marker81, 'mouseout' , function() {
infowindowmarker81.close(map,marker81);
});
google.maps.event.addListener(marker81, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name8-1').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name8-1').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name8-1').click();
});var markerpos91 = new google.maps.LatLng(51.5506520,-0.1763120);var marker91 = new google.maps.Marker({
position: markerpos91,
icon: mapIconDarkblue
,
/* title:'Click to zoom' */
});
marker91.setMap(map);markers_schools.push(marker91)
var infowindowmarker91 = new google.maps.InfoWindow({
content:"St Mary's School Hampstead
"
});
google.maps.event.addListener(marker91, 'mouseover' , function() {
infowindowmarker91.open(map,marker91);
});
google.maps.event.addListener(marker91, 'mouseout' , function() {
infowindowmarker91.close(map,marker91);
});
google.maps.event.addListener(marker91, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name9-1').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name9-1').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name9-1').click();
});var markerpos101 = new google.maps.LatLng(51.5529160,-0.1760520);var marker101 = new google.maps.Marker({
position: markerpos101,
icon: mapIconDarkblue
,
/* title:'Click to zoom' */
});
marker101.setMap(map);markers_schools.push(marker101)
var infowindowmarker101 = new google.maps.InfoWindow({
content:"Devonshire House Preparatory School
"
});
google.maps.event.addListener(marker101, 'mouseover' , function() {
infowindowmarker101.open(map,marker101);
});
google.maps.event.addListener(marker101, 'mouseout' , function() {
infowindowmarker101.close(map,marker101);
});
google.maps.event.addListener(marker101, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name10-1').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name10-1').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name10-1').click();
});var markerpos111 = new google.maps.LatLng(51.5538620,-0.1751810);var marker111 = new google.maps.Marker({
position: markerpos111,
icon: mapIconDarkblue
,
/* title:'Click to zoom' */
});
marker111.setMap(map);markers_schools.push(marker111)
var infowindowmarker111 = new google.maps.InfoWindow({
content:"Fitzjohn's Primary School
"
});
google.maps.event.addListener(marker111, 'mouseover' , function() {
infowindowmarker111.open(map,marker111);
});
google.maps.event.addListener(marker111, 'mouseout' , function() {
infowindowmarker111.close(map,marker111);
});
google.maps.event.addListener(marker111, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name11-1').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name11-1').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name11-1').click();
});var markerpos121 = new google.maps.LatLng(51.570067350150964,-0.14530684234523505);var marker121 = new google.maps.Marker({
position: markerpos121,
icon: mapIconDarkblue
,
/* title:'Click to zoom' */
});
marker121.setMap(map);markers_schools.push(marker121)
var infowindowmarker121 = new google.maps.InfoWindow({
content:"Channing School for Girls Junior and Senior Schools
"
});
google.maps.event.addListener(marker121, 'mouseover' , function() {
infowindowmarker121.open(map,marker121);
});
google.maps.event.addListener(marker121, 'mouseout' , function() {
infowindowmarker121.close(map,marker121);
});
google.maps.event.addListener(marker121, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name12-1').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name12-1').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name12-1').click();
});var markerpos131 = new google.maps.LatLng(51.5482460,-0.1791860);var marker131 = new google.maps.Marker({
position: markerpos131,
icon: mapIconDarkblue
,
/* title:'Click to zoom' */
});
marker131.setMap(map);markers_schools.push(marker131)
var infowindowmarker131 = new google.maps.InfoWindow({
content:"South Hampstead Junior School
"
});
google.maps.event.addListener(marker131, 'mouseover' , function() {
infowindowmarker131.open(map,marker131);
});
google.maps.event.addListener(marker131, 'mouseout' , function() {
infowindowmarker131.close(map,marker131);
});
google.maps.event.addListener(marker131, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name13-1').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name13-1').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name13-1').click();
});var markerpos141 = new google.maps.LatLng(51.570008999999985,-0.14522168220901222);var marker141 = new google.maps.Marker({
position: markerpos141,
icon: mapIconDarkblue
,
/* title:'Click to zoom' */
});
marker141.setMap(map);markers_schools.push(marker141)
var infowindowmarker141 = new google.maps.InfoWindow({
content:"Channing School for Girls Junior and Senior Schools
"
});
google.maps.event.addListener(marker141, 'mouseover' , function() {
infowindowmarker141.open(map,marker141);
});
google.maps.event.addListener(marker141, 'mouseout' , function() {
infowindowmarker141.close(map,marker141);
});
google.maps.event.addListener(marker141, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name14-1').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name14-1').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name14-1').click();
});var markerpos151 = new google.maps.LatLng(51.5702200,-0.1441780);var marker151 = new google.maps.Marker({
position: markerpos151,
icon: mapIconDarkblue
,
/* title:'Click to zoom' */
});
marker151.setMap(map);markers_schools.push(marker151)
var infowindowmarker151 = new google.maps.InfoWindow({
content:"South Hampstead Senior School
"
});
google.maps.event.addListener(marker151, 'mouseover' , function() {
infowindowmarker151.open(map,marker151);
});
google.maps.event.addListener(marker151, 'mouseout' , function() {
infowindowmarker151.close(map,marker151);
});
google.maps.event.addListener(marker151, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name15-1').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name15-1').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name15-1').click();
});var avglat = ".$avglat;var avglng = ".$avglng;var markerpos02 = new google.maps.LatLng(51.5695230,-0.1852880);var marker02 = new google.maps.Marker({
position: markerpos02,
icon: mapIconBlue
,
/* title:'Click to zoom' */
});
marker02.setMap(map);markers_transport.push(marker02)
var infowindowmarker02 = new google.maps.InfoWindow({
content:"Hampstead Underground Station (Zone 2)
"
});
google.maps.event.addListener(marker02, 'mouseover' , function() {
infowindowmarker02.open(map,marker02);
});
google.maps.event.addListener(marker02, 'mouseout' , function() {
infowindowmarker02.close(map,marker02);
});
google.maps.event.addListener(marker02, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name0-2').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name0-2').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name0-2').click();
});var avglat = ".$avglat;var avglng = ".$avglng;var markerpos03 = new google.maps.LatLng(51.570648,-0.147180);var marker03 = new google.maps.Marker({
position: markerpos03,
icon: mapIconOrange
,
/* title:'Click to zoom' */
});
marker03.setMap(map);markers_shops.push(marker03)
var infowindowmarker03 = new google.maps.InfoWindow({
content:"Highgate Village
"
});
google.maps.event.addListener(marker03, 'mouseover' , function() {
infowindowmarker03.open(map,marker03);
});
google.maps.event.addListener(marker03, 'mouseout' , function() {
infowindowmarker03.close(map,marker03);
});
google.maps.event.addListener(marker03, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name0-3').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name0-3').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name0-3').click();
});var markerpos13 = new google.maps.LatLng(51.555704,-0.176481);var marker13 = new google.maps.Marker({
position: markerpos13,
icon: mapIconOrange
,
/* title:'Click to zoom' */
});
marker13.setMap(map);markers_shops.push(marker13)
var infowindowmarker13 = new google.maps.InfoWindow({
content:"Hampstead High street
"
});
google.maps.event.addListener(marker13, 'mouseover' , function() {
infowindowmarker13.open(map,marker13);
});
google.maps.event.addListener(marker13, 'mouseout' , function() {
infowindowmarker13.close(map,marker13);
});
google.maps.event.addListener(marker13, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name1-3').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name1-3').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name1-3').click();
});var markerpos23 = new google.maps.LatLng(51.572260,-0.194010);var marker23 = new google.maps.Marker({
position: markerpos23,
icon: mapIconOrange
,
/* title:'Click to zoom' */
});
marker23.setMap(map);markers_shops.push(marker23)
var infowindowmarker23 = new google.maps.InfoWindow({
content:"Golders Green High street
"
});
google.maps.event.addListener(marker23, 'mouseover' , function() {
infowindowmarker23.open(map,marker23);
});
google.maps.event.addListener(marker23, 'mouseout' , function() {
infowindowmarker23.close(map,marker23);
});
google.maps.event.addListener(marker23, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name2-3').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name2-3').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name2-3').click();
});var markerpos33 = new google.maps.LatLng(51.57617519999999,-0.22452260000000024);var marker33 = new google.maps.Marker({
position: markerpos33,
icon: mapIconOrange
,
/* title:'Click to zoom' */
});
marker33.setMap(map);markers_shops.push(marker33)
var infowindowmarker33 = new google.maps.InfoWindow({
content:"Brent Cross Shopping Centre
"
});
google.maps.event.addListener(marker33, 'mouseover' , function() {
infowindowmarker33.open(map,marker33);
});
google.maps.event.addListener(marker33, 'mouseout' , function() {
infowindowmarker33.close(map,marker33);
});
google.maps.event.addListener(marker33, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name3-3').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name3-3').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name3-3').click();
});var markerpos43 = new google.maps.LatLng(51.5826541,-0.20002120000003742);var marker43 = new google.maps.Marker({
position: markerpos43,
icon: mapIconOrange
,
/* title:'Click to zoom' */
});
marker43.setMap(map);markers_shops.push(marker43)
var infowindowmarker43 = new google.maps.InfoWindow({
content:"Temple Fortune Parade
"
});
google.maps.event.addListener(marker43, 'mouseover' , function() {
infowindowmarker43.open(map,marker43);
});
google.maps.event.addListener(marker43, 'mouseout' , function() {
infowindowmarker43.close(map,marker43);
});
google.maps.event.addListener(marker43, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name4-3').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name4-3').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name4-3').click();
});var markerpos53 = new google.maps.LatLng(51.5146301,-0.15282709999996769);var marker53 = new google.maps.Marker({
position: markerpos53,
icon: mapIconOrange
,
/* title:'Click to zoom' */
});
marker53.setMap(map);markers_shops.push(marker53)
var infowindowmarker53 = new google.maps.InfoWindow({
content:"Selfridges
"
});
google.maps.event.addListener(marker53, 'mouseover' , function() {
infowindowmarker53.open(map,marker53);
});
google.maps.event.addListener(marker53, 'mouseout' , function() {
infowindowmarker53.close(map,marker53);
});
google.maps.event.addListener(marker53, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name5-3').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name5-3').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name5-3').click();
});var markerpos63 = new google.maps.LatLng(51.50924329999999,-0.1333835000000363);var marker63 = new google.maps.Marker({
position: markerpos63,
icon: mapIconOrange
,
/* title:'Click to zoom' */
});
marker63.setMap(map);markers_shops.push(marker63)
var infowindowmarker63 = new google.maps.InfoWindow({
content:"Harrods
"
});
google.maps.event.addListener(marker63, 'mouseover' , function() {
infowindowmarker63.open(map,marker63);
});
google.maps.event.addListener(marker63, 'mouseout' , function() {
infowindowmarker63.close(map,marker63);
});
google.maps.event.addListener(marker63, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name6-3').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name6-3').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name6-3').click();
});var markerpos73 = new google.maps.LatLng(51.5073509,-0.12775829999998223);var marker73 = new google.maps.Marker({
position: markerpos73,
icon: mapIconOrange
,
/* title:'Click to zoom' */
});
marker73.setMap(map);markers_shops.push(marker73)
var infowindowmarker73 = new google.maps.InfoWindow({
content:"Harvey Nichols
"
});
google.maps.event.addListener(marker73, 'mouseover' , function() {
infowindowmarker73.open(map,marker73);
});
google.maps.event.addListener(marker73, 'mouseout' , function() {
infowindowmarker73.close(map,marker73);
});
google.maps.event.addListener(marker73, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name7-3').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name7-3').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name7-3').click();
});var markerpos83 = new google.maps.LatLng(51.5122823,-0.3058492999999771);var marker83 = new google.maps.Marker({
position: markerpos83,
icon: mapIconOrange
,
/* title:'Click to zoom' */
});
marker83.setMap(map);markers_shops.push(marker83)
var infowindowmarker83 = new google.maps.InfoWindow({
content:"Bond Street
"
});
google.maps.event.addListener(marker83, 'mouseover' , function() {
infowindowmarker83.open(map,marker83);
});
google.maps.event.addListener(marker83, 'mouseout' , function() {
infowindowmarker83.close(map,marker83);
});
google.maps.event.addListener(marker83, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name8-3').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name8-3').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name8-3').click();
});var markerpos93 = new google.maps.LatLng(51.515254,-0.141080);var marker93 = new google.maps.Marker({
position: markerpos93,
icon: mapIconOrange
,
/* title:'Click to zoom' */
});
marker93.setMap(map);markers_shops.push(marker93)
var infowindowmarker93 = new google.maps.InfoWindow({
content:"Oxford Circus
"
});
google.maps.event.addListener(marker93, 'mouseover' , function() {
infowindowmarker93.open(map,marker93);
});
google.maps.event.addListener(marker93, 'mouseout' , function() {
infowindowmarker93.close(map,marker93);
});
google.maps.event.addListener(marker93, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name9-3').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name9-3').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name9-3').click();
});var markerpos103 = new google.maps.LatLng(51.64428359999999,0.04356529999995473);var marker103 = new google.maps.Marker({
position: markerpos103,
icon: mapIconOrange
,
/* title:'Click to zoom' */
});
marker103.setMap(map);markers_shops.push(marker103)
var infowindowmarker103 = new google.maps.InfoWindow({
content:"Westfield
"
});
google.maps.event.addListener(marker103, 'mouseover' , function() {
infowindowmarker103.open(map,marker103);
});
google.maps.event.addListener(marker103, 'mouseout' , function() {
infowindowmarker103.close(map,marker103);
});
google.maps.event.addListener(marker103, 'click', function() {
var flagSet = false;
$('html, body').animate({
scrollTop: $('#arealist_name10-3').offset().top
}, 2000, function(){
flagSet = true;
});
var interval = setInterval(function(){
if (flagSet){
$('#arealist_name10-3').click();
clearInterval(interval);
}
}, 1)
//$('#arealist_name10-3').click();
}); /* This part is to check if the arealisting page is displayed through property page */
clearMarkers(1);
clearMarkers(2);
clearMarkers(3);
// map.setCenter(bounds.getCenter());
// map.fitBounds(bounds);
// map.setZoom(12);
}
google.maps.event.addDomListener(window, 'load', initialize);
/* google.maps.event.trigger(map, 'resize'); */