map.addControl(new GMapTypeControl()); map.setCenter(new GLatLng(58.502273,39.12539), 16, sbHybrid_map); new GKeyboardHandler(map); map.enableDoubleClickZoom(); var point = new GLatLng(58.502273,39.12539); var desc = '
'+ '
'+ ''+ ''+ ''+ '
'+ ''+ 'Ярославская область, Пошехонье, Церковь Успения Пресвятой Богородицы 1822г'+ '
'; ZMarker(point,'Ярославская область, Пошехонье, Церковь Успения Пресвятой Богородицы 1822г',desc,1,0,0,null); bounds.extend(point); map.setCenter(bounds.getCenter(),map.getBoundsZoomLevel(bounds),G_HYBRID_MAP); /* swPoint = new GLatLng(,); nePoint = new GLatLng(,); bounds = new GLatLngBounds(swPoint, nePoint); map.setZoom(map.getBoundsZoomLevel(bounds)); */ //map.addOverlay(geoXml); //geoXml.gotoDefaultViewport(map); /* point = new GLatLng(58.0405,38.8363) marker = new GMarker(point); mgr = new GMarkerManager(map); mgr.addMarker(marker, 14); mgr.refresh(); */ } } // Zoom OUT ======================================================= function sb_zoomOut() { if ( null == map ) return false; paragraphs = map.getContainer().getElementsByTagName('p').length; if(paragraphs>4) { map.zoomOut(); } return true; } var interval = setInterval("sb_zoomOut()",1000); // END of Zoom OUT ======================================================= // SideBar ======================================================= /* function sb_geoLoadCheck() { if ( geoXml.loadedCorrectly() ) { clearInterval(geoLoad); drawSideBar(); } } var geoLoad = setInterval("sb_geoLoadCheck()",1000); function drawSideBar() { var markerList = geoXml.getElementsByName("Placemark"); for (var i = 0; i < markerList.length; ++i) { var markerName = markerList[i].getAttribute("label"); alert("markerName"); } return true; } */ // End of SideBar ======================================================= //]]>