/** * Created by Second_Fry on 21.05.2014. */ ////// Helpers function checkMouseBigMap(event, tl_offset, br_offset) { return event.pageX > tl_offset['left'] && event.pageY > tl_offset['top'] && event.pageX < br_offset['left'] && event.pageY < br_offset['top']; } ////// Initialize var outBox = false, outMarker = true; var boxOptions = {disableAutoPan: true, pixelOffset: new google.maps.Size(-75, 0), boxStyle: {width: "136px", background: "rgba(255, 255, 255, 0.9)", border: "1px solid #000", padding: "7px"}}; var infoBox = new InfoBox(boxOptions); var latlng = new google.maps.LatLng(55.75579,37.61763); var mapOptions = {minZoom: 7, maxZoom: 10, zoom: 10, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP}; var big_map = new google.maps.Map(document.getElementById("big_map_canvas"), mapOptions); var markers = []; var marker = new google.maps.Marker({content: 'Русская усадьба', position: new google.maps.LatLng(55.4971,37.318), map: big_map, title:"Русская усадьба"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Цветочный', position: new google.maps.LatLng(55.4974,37.318), map: big_map, title:"Цветочный"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Лесное озеро', position: new google.maps.LatLng(55.425083,37.295239), map: big_map, title:"Лесное озеро"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Никольские озера', position: new google.maps.LatLng(55.3426,37.2872), map: big_map, title:"Никольские озера"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Березовая роща', position: new google.maps.LatLng(55.1176,37.1250), map: big_map, title:"Березовая роща"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Чубарово-2', position: new google.maps.LatLng(55.1176,37.1250), map: big_map, title:"Чубарово-2"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Ковчег', position: new google.maps.LatLng(55.1413,36.813), map: big_map, title:"Ковчег"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Победа', position: new google.maps.LatLng(55.205961,36.936679), map: big_map, title:"Победа"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Рассказовка', position: new google.maps.LatLng(55.6337,37.3333), map: big_map, title:"Рассказовка"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'La Promenade', position: new google.maps.LatLng(55.5757,37.268), map: big_map, title:"La Promenade"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Графские пруды', position: new google.maps.LatLng(55.5353,37.1657), map: big_map, title:"Графские пруды"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Чистые пруды', position: new google.maps.LatLng(55.5944,37.1103), map: big_map, title:"Чистые пруды"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Крекшино', position: new google.maps.LatLng(55.5944,37.1103), map: big_map, title:"Крекшино"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Зимний сад', position: new google.maps.LatLng(55.5352,37.1660), map: big_map, title:"Зимний сад"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Зеленые холмы', position: new google.maps.LatLng(55.5352,37.1660), map: big_map, title:"Зеленые холмы"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Мартемьяново', position: new google.maps.LatLng(55.5400,37.082), map: big_map, title:"Мартемьяново"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'RAVISSANT-Каменка', position: new google.maps.LatLng(55.509854,37.164876), map: big_map, title:"RAVISSANT-Каменка"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Новоглаголево', position: new google.maps.LatLng(55.5150,36.9759), map: big_map, title:"Новоглаголево"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Усадьба Жедочи', position: new google.maps.LatLng(55.5150,36.9759), map: big_map, title:"Усадьба Жедочи"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'ВИК', position: new google.maps.LatLng(55.4764,36.924), map: big_map, title:"ВИК"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Дача на озере', position: new google.maps.LatLng(55.203,36.479), map: big_map, title:"Дача на озере"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Комплекс землевладений «Лесные усадьбы»', position: new google.maps.LatLng(55.025,37.027), map: big_map, title:"Комплекс землевладений «Лесные усадьбы»"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Зеленая долина', position: new google.maps.LatLng(55.2744,36.469), map: big_map, title:"Зеленая долина"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Покровский', position: new google.maps.LatLng(55.880,36.318), map: big_map, title:"Покровский"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Madison Park', position: new google.maps.LatLng(55.880,36.318), map: big_map, title:"Madison Park"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Солнечный-1', position: new google.maps.LatLng(55.116461,37.12503), map: big_map, title:"Солнечный-1"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Лесная сказка', position: new google.maps.LatLng(55.19742,36.9331), map: big_map, title:"Лесная сказка"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Сосновый бор', position: new google.maps.LatLng(55.3623,37.3828), map: big_map, title:"Сосновый бор"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Лазурный', position: new google.maps.LatLng(55.19742,36.9331), map: big_map, title:"Лазурный"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Monteville', position: new google.maps.LatLng(55.87937,36.3180), map: big_map, title:"Monteville"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Millenium Park', position: new google.maps.LatLng(55.87932,36.3180), map: big_map, title:"Millenium Park"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Гринфилд', position: new google.maps.LatLng(55.87932,36.3180), map: big_map, title:"Гринфилд"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Певчее', position: new google.maps.LatLng(55.5178,37.2233), map: big_map, title:"Певчее"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Западный парк', position: new google.maps.LatLng(55.5598,36.943), map: big_map, title:"Западный парк"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Жаворонки-1', position: new google.maps.LatLng(55.644359,37.099424), map: big_map, title:"Жаворонки-1"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Усадьба Жуковка', position: new google.maps.LatLng(55.7344,37.2501), map: big_map, title:"Усадьба Жуковка"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Барвиха XXI', position: new google.maps.LatLng(55.7228,37.276), map: big_map, title:"Барвиха XXI"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Велеми', position: new google.maps.LatLng(55.0376,37.484), map: big_map, title:"Велеми"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Южные озера', position: new google.maps.LatLng(55.241,37.213), map: big_map, title:"Южные озера"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Чистые пруды 2', position: new google.maps.LatLng(55.7983,37.1144), map: big_map, title:"Чистые пруды 2"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Стольный', position: new google.maps.LatLng(55.34242,37.28715), map: big_map, title:"Стольный"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Лесной ручей-3', position: new google.maps.LatLng(55.6418,37.2040), map: big_map, title:"Лесной ручей-3"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Лесные просторы', position: new google.maps.LatLng(55.7144,37.0695), map: big_map, title:"Лесные просторы"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Ромашково ХХI', position: new google.maps.LatLng(55.7198,37.3669), map: big_map, title:"Ромашково ХХI"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Озерный край - Лыщево', position: new google.maps.LatLng(55.9120,36.8605), map: big_map, title:"Озерный край - Лыщево"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Озерный край', position: new google.maps.LatLng(56.0450,36.7082), map: big_map, title:"Озерный край"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Полуостров', position: new google.maps.LatLng(56.1417,36.883), map: big_map, title:"Полуостров"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Лисичкин лес', position: new google.maps.LatLng(56.0300,37.1690), map: big_map, title:"Лисичкин лес"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Серебряный век', position: new google.maps.LatLng(55.514637,36.976161), map: big_map, title:"Серебряный век"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Павлово', position: new google.maps.LatLng(55.814015,37.101517), map: big_map, title:"Павлово"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Истра Лэнд', position: new google.maps.LatLng(56.066765,36.852093), map: big_map, title:"Истра Лэнд"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Новогорск 7', position: new google.maps.LatLng(55.892497,37.350812), map: big_map, title:"Новогорск 7"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Сокольники', position: new google.maps.LatLng(55.944009,36.897497), map: big_map, title:"Сокольники"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Новорижский', position: new google.maps.LatLng(55.811483,37.007661), map: big_map, title:"Новорижский"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'По-Рижская мечта', position: new google.maps.LatLng(55.846554,36.949039), map: big_map, title:"По-Рижская мечта"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Новорижские холмы', position: new google.maps.LatLng(55.896058,36.57795), map: big_map, title:"Новорижские холмы"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Александровы пруды', position: new google.maps.LatLng(55.418712,37.408447), map: big_map, title:"Александровы пруды"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Империал', position: new google.maps.LatLng(55.536985,37.195158), map: big_map, title:"Империал"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Покровский лес', position: new google.maps.LatLng(55.554321,37.242279), map: big_map, title:"Покровский лес"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Романцево', position: new google.maps.LatLng(55.491194,37.309253), map: big_map, title:"Романцево"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Тихие Дали', position: new google.maps.LatLng(55.728984,36.114935), map: big_map, title:"Тихие Дали"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Бавария Club', position: new google.maps.LatLng(55.491146,37.309596), map: big_map, title:"Бавария Club"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Духанино', position: new google.maps.LatLng(55.974682,36.948007), map: big_map, title:"Духанино"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Обушково', position: new google.maps.LatLng(55.791052,37.038431), map: big_map, title:"Обушково"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Ново-Шарапово', position: new google.maps.LatLng(55.432422,37.182627), map: big_map, title:"Ново-Шарапово"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Лужайкино', position: new google.maps.LatLng(55.432423,37.182628), map: big_map, title:"Лужайкино"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Беляевская слобода', position: new google.maps.LatLng(55.145796,37.331246), map: big_map, title:"Беляевская слобода"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Сосновка Парк', position: new google.maps.LatLng(55.039896,37.348866), map: big_map, title:"Сосновка Парк"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Графский Лес', position: new google.maps.LatLng(55.508255,37.165375), map: big_map, title:"Графский Лес"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Мещерское Полесье', position: new google.maps.LatLng(55.258143,37.604697), map: big_map, title:"Мещерское Полесье"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Вяземские Сады', position: new google.maps.LatLng(55.041696,37.36276), map: big_map, title:"Вяземские Сады"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Фортопс', position: new google.maps.LatLng(55.492276,37.327582), map: big_map, title:"Фортопс"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Зосимово', position: new google.maps.LatLng(55.475259,36.935375), map: big_map, title:"Зосимово"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Юсупово', position: new google.maps.LatLng(55.395983,37.706500), map: big_map, title:"Юсупово"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Фортуна', position: new google.maps.LatLng(56.053252,37.600339), map: big_map, title:"Фортуна"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Вилла Фортуна', position: new google.maps.LatLng(55.543493,37.171356), map: big_map, title:"Вилла Фортуна"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Рига Парк', position: new google.maps.LatLng(55.809674,37.030422), map: big_map, title:"Рига Парк"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Эдельвейс', position: new google.maps.LatLng(56.084202,37.372715), map: big_map, title:"Эдельвейс"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Никольский берег', position: new google.maps.LatLng(55.362722,37.196563), map: big_map, title:"Никольский берег"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Булгаков', position: new google.maps.LatLng(55.41870,37.40849), map: big_map, title:"Булгаков"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Глаголево Парк', position: new google.maps.LatLng(55.477102,37.03589), map: big_map, title:"Глаголево Парк"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Княжье Озеро', position: new google.maps.LatLng(55.814015,37.064069), map: big_map, title:"Княжье Озеро"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Никитское', position: new google.maps.LatLng(56.090044,36.704241), map: big_map, title:"Никитское"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Шелестово', position: new google.maps.LatLng(55.981386,36.775261), map: big_map, title:"Шелестово"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Экопарк Ушаково', position: new google.maps.LatLng(56.055456,36.691576), map: big_map, title:"Экопарк Ушаково"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Тихая заводь', position: new google.maps.LatLng(56.06355,36.734946), map: big_map, title:"Тихая заводь"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Zorino Sport Village', position: new google.maps.LatLng(56.005891,36.71611), map: big_map, title:"Zorino Sport Village"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Ушаковские Дачи', position: new google.maps.LatLng(56.055744,36.693795), map: big_map, title:"Ушаковские Дачи"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Берег Honka', position: new google.maps.LatLng(56.081999,36.754366), map: big_map, title:"Берег Honka"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Lake Side', position: new google.maps.LatLng(56.088991,36.745148), map: big_map, title:"Lake Side"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Zorino Active Resort', position: new google.maps.LatLng(56.007595,36.721864), map: big_map, title:"Zorino Active Resort"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Лесная пристань 2', position: new google.maps.LatLng(55.975623,36.837595), map: big_map, title:"Лесная пристань 2"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Пестово', position: new google.maps.LatLng(56.099958,37.605242), map: big_map, title:"Пестово"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Авангард', position: new google.maps.LatLng(54.938892,37.500133), map: big_map, title:"Авангард"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Дача на реке', position: new google.maps.LatLng(55.098596,37.547930), map: big_map, title:"Дача на реке"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Ближнее Покровское', position: new google.maps.LatLng(55.555821,37.327918), map: big_map, title:"Ближнее Покровское"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Квартал Птичное', position: new google.maps.LatLng(55.518405,37.225375), map: big_map, title:"Квартал Птичное"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Бисерово Парк', position: new google.maps.LatLng(55.802342,38.1737291), map: big_map, title:"Бисерово Парк"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Валуево', position: new google.maps.LatLng(55.571483,37.354425), map: big_map, title:"Валуево"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Северная слобода', position: new google.maps.LatLng(55.917362,37.551581), map: big_map, title:"Северная слобода"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Прозоровское-Голицыно', position: new google.maps.LatLng(55.594161,38.165170), map: big_map, title:"Прозоровское-Голицыно"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Журавли', position: new google.maps.LatLng(55.845735,37.248131), map: big_map, title:"Журавли"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Алешкино', position: new google.maps.LatLng(56.090017,36.503793), map: big_map, title:"Алешкино"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Рождествено', position: new google.maps.LatLng(55.853952,37.053930), map: big_map, title:"Рождествено"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Николина горка', position: new google.maps.LatLng(55.121168,37.143190), map: big_map, title:"Николина горка"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Гринвич', position: new google.maps.LatLng(56.030618,36.979413), map: big_map, title:"Гринвич"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Аисты', position: new google.maps.LatLng(55.851595,36.951498), map: big_map, title:"Аисты"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Веледниково DeLuxe', position: new google.maps.LatLng(55.800348,37.111107), map: big_map, title:"Веледниково DeLuxe"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Анютины глазки', position: new google.maps.LatLng(56.091282,36.607164), map: big_map, title:"Анютины глазки"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Кореньки Кантри', position: new google.maps.LatLng(56.091282,36.607164), map: big_map, title:"Кореньки Кантри"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Орехово', position: new google.maps.LatLng(55.179417,36.961756), map: big_map, title:"Орехово"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Новые Вешки', position: new google.maps.LatLng(55.935304,37.610118), map: big_map, title:"Новые Вешки"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Река Река', position: new google.maps.LatLng(55.729714,36.856048), map: big_map, title:"Река Река"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Веретенки Family Club', position: new google.maps.LatLng(55.921593,36.610014), map: big_map, title:"Веретенки Family Club"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Новолуговая', position: new google.maps.LatLng(56.010216,37.484035), map: big_map, title:"Новолуговая"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Аксаково', position: new google.maps.LatLng(56.042816,37.618939), map: big_map, title:"Аксаково"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Заозёрная слобода', position: new google.maps.LatLng(55.419433,37.4044145), map: big_map, title:"Заозёрная слобода"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Лион', position: new google.maps.LatLng(55.762890,36.988965), map: big_map, title:"Лион"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Эсквайр Парк', position: new google.maps.LatLng(55.938667,36.846879), map: big_map, title:"Эсквайр Парк"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Природный парк Каменка', position: new google.maps.LatLng(55.495992,37.139601), map: big_map, title:"Природный парк Каменка"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Успенка 21', position: new google.maps.LatLng(55.692105,37.048597), map: big_map, title:"Успенка 21"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Покровское', position: new google.maps.LatLng(55.503648,37.329299), map: big_map, title:"Покровское"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Марк Твен', position: new google.maps.LatLng(55.511648,37.670037), map: big_map, title:"Марк Твен"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Синергия', position: new google.maps.LatLng(55.6,37.35), map: big_map, title:"Синергия"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Лесной городок', position: new google.maps.LatLng(55.639409,37.209626), map: big_map, title:"Лесной городок"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Астра - Лесные Усадьбы', position: new google.maps.LatLng(55.586364,36.932330), map: big_map, title:"Астра - Лесные Усадьбы"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Светлогорье', position: new google.maps.LatLng(55.858309,36.797364), map: big_map, title:"Светлогорье"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Праймвиль', position: new google.maps.LatLng(55.557866,37.348912), map: big_map, title:"Праймвиль"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker); var marker = new google.maps.Marker({content: 'Лидер', position: new google.maps.LatLng(55.447964,36.992641), map: big_map, title:"Лидер"}); google.maps.event.addListener(marker, "mouseover", function(){ var content = this["content"]; infoBox.setContent(content); infoBox.open(big_map, this); outMarker = false; }); google.maps.event.addListener(marker, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); markers.push(marker);var mcOptions = {gridSize:40, maxZoom: 15, zoomOnClick: false}; var mc = new MarkerClusterer(big_map, markers, mcOptions); ////// Event handlers //// Mouseover/out of window google.maps.event.addListener(infoBox, "mouseover", function(){ outBox = false; }); google.maps.event.addListener(infoBox, "mouseout", function(){ outBox = true; if(outMarker && outBox) { infoBox.close(); } }); //// Click on cluster google.maps.event.addListener(mc, "mouseover", function(cluster){ var clusterMarkers = cluster.getMarkers(); var content = ""; clusterMarkers.forEach(function(entry){ content += entry['content'] + '
'; }); infoBox.setContent(content); infoBox.open(big_map, clusterMarkers[0]); outMarker = false; }); google.maps.event.addListener(mc, "mouseout", function(){ outMarker = true; if(outMarker && outBox) { infoBox.close(); } }); //// Hover map var big_map_hidden = true; var bigMapCanvas = $('#big_map_canvas'); var mRightWrap = $('#m_right_wrap'); var dataBlock = $('#data_block'); var tl_offset = bigMapCanvas.offset(); $(window).mousemove(function(e){ var br_offset = {'top': tl_offset['top'] + bigMapCanvas.height(), 'left': tl_offset['left'] + bigMapCanvas.width()}; if(checkMouseBigMap(e, tl_offset, br_offset)) { if(big_map_hidden) { big_map.panBy(0, -100); $(bigMapCanvas).stop().animate({'height': '400px'}, 200, function(){ google.maps.event.trigger(big_map, "resize"); }); mRightWrap.finish().animate({'top': parseFloat(mRightWrap.css('top')) + 200}, 200, function(){ fixMRightWrap(); }); dataBlock.finish().animate({'height': dataBlock.height() - 200}, 200); big_map_hidden = false; } } else { if(!big_map_hidden) { big_map.panBy(0, 100); $(bigMapCanvas).stop().animate({'height': '200px'}, 200, function(){ google.maps.event.trigger(big_map, "resize"); }); mRightWrap.finish().animate({'top': parseFloat(mRightWrap.css('top')) - 200}, 200, function(){ fixMRightWrap(); }); dataBlock.finish().animate({'height': dataBlock.height() + 200}, 200); big_map_hidden = true; } } });