skyline测试页面

<html>  
<head>  
    <title>sss</title>  
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<script>
			var flyurl="E:/tmp//地铁模型/ceshi.fly";
			function load(){
				SGWorld.Project.Open(flyurl)
			}
			var Waypoints1=[];
			function xx(){
				var id = SGWorld.ProjectTree.FindItem("test");
				var line = SGWorld.ProjectTree.GetObject(id);
				var features = line.FeatureGroups.Polyline.Features; 
				for(var i=0; i < features.Count; i++){  
            		var featuree = features.Item(i); 
            		var geometryy = featuree.Geometry; 
            		var itemid = SGWorld.ProjectTree.CreateGroup("temp")
            		var cline = SGWorld.Creator.CreatePolyline(geometryy,SGWorld.Creator.CreateColor(0, 255, 0, 1),2,itemid,'');
            		SGWorld.Navigate.Flyto(cline);
            		for(var index=0;index<cline.Geometry.Points.Count;index++){
		        		var point = cline.Geometry.Points.Item(index);
		        		var x = point.X;
		        		var y = point.Y;
		        		var z = point.Z;
		        		var points1 = SGWorld.Creator.CreateRouteWaypoint(x,y,0,10,0,0,0,0,0,0);
		        		Waypoints1.push(points1);
		        	}
            		var DynamicObject = SGWorld.Creator.CreateDynamicObject(Waypoints1,0,1,"xxxxxxxxxxxxx",1,0,itemid, "");
            		SGWorld.Navigate.Flyto(DynamicObject);
				}
			}
		</script>
</head>  
<body οnlοad="load()" id='mainBody'>  
<div style="width:100%;height:100%;">
	<object id="TerraExplorer3DWindow" classid="CLSID:3A4F9192-65A8-11D5-85C1-0001023952C1" style="width:80%;height:100%; float:right">  
	</object>  
	<object id="SGWorld" classid="CLSID:3A4F91B0-65A8-11D5-85C1-0001023952C1" data="DATA:application/x-oleobject;BASE64" style="display:none">  
	</object>    
	<object ID="TerraExplorerInformationWindow" CLASSID="CLSID:3a4f9193-65a8-11d5-85c1-0001023952c1" style="width:20%;height:100%; float:left" >  
	</object>
</div>  
</body>  
</html>  

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值