欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

soso街景例子

shiping1 的头像
<iframe src="http://www.aaaa.com/sosomap.html" style="width:660px;height:460px;" frameborder="0" scrolling="no"></iframe>

 

sosomap.html 的内容是
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>医院 - 街景地图</title>
</head>
<body onload="init()">
<script charset="utf-8" src="http://map.soso.com/api/v2/main.js?key=07e6e23e6b348b1a03de64138be4f384"></script>
<script>

var init = function(){
	pano_container=document.getElementById('PanoCtn');	//街景容器
	pano = new soso.maps.Panorama(pano_container, {
		pano: '10121010121105114204500',	//场景ID
		pov:{	//视角
				heading:30,	//偏航角
				pitch:-15		//俯仰角
			},
		zoom:1		//缩放
	})
}
</script>
<div id="PanoCtn" style="width:650px;height:450px"></div>
</body>
</html>
普通分类: