new XUIScene()
Methods
-
AddModel(strUrl, dLon, dLat, dHei, nID, dScale)
-
添加模型
Parameters:
Name Type Description strUrl
String 模型资源路径 dLon
Double 经度 dLat
Double 纬度 dHei
Double 高度 nID
Number 模型id dScale
Double 模型大小 Properties:
Name Type Description ModelProp
Collection ["", 0, 0, 0, 0,0] -
AnimationFallback()
-
动画回退
-
AnimationPause()
-
动画暂停
-
AnimationPlayback()
-
动画播放
-
AnimationRate(Nspeed)
-
动画速率
Parameters:
Name Type Description Nspeed
Number -
DestoryAll()
-
清空所有场景对象
-
GetCoordinates() → {Array}
-
获得坐标
Returns:
Array -
GlobalCameraAngle()
-
整体视角
-
ModifyModelProperties(nID, dLon, dLat, dHei, dScale, dheading, dpitch, droll)
-
修改模型属性
Parameters:
Name Type Description nID
Number 模型id dLon
Double 经度 dLat
Double 纬度 dHei
Double 高度 dScale
Double 模型大小 dheading
Double 偏航角 dpitch
Double 俯仰角 droll
Double 翻滚角 -
RemoveAllPoints()
-
删除所有选的点
-
RemoveEntity(nID)
-
删除实体对象
Parameters:
Name Type Description nID
Number 模型id -
Set2DMode()
-
二维视角
-
Set3DMode()
-
三维视角
-
SetCameraPosition(nHeight)
-
设置视角深度
Parameters:
Name Type Description nHeight
Number -
SetEarthShadingEffect(isdepth)
-
设置地球表层遮蔽效果
Parameters:
Name Type Description isdepth
Boolean -
SetEnvityVisible(nID, Isvisible)
-
实体显示隐藏
Parameters:
Name Type Description nID
Number 模型id Isvisible
Boolean -
SetOfflineMap(strUrl)
-
设置离线地图加载
Parameters:
Name Type Description strUrl
String `./BaseEarthFiles/OfflineTileMap/{z}/{x}/{y}.png`绝对路径 -
SetOnlineMap(strUrl)
-
加载在线地图
Parameters:
Name Type Description strUrl
String "http://mt1.google.cn/vt/lyrs=s,h&gl=cn&x={x}&y={y}&z={z}&s=Gali" -
SetTimeline(start, stop)
-
设置初始与结束时间
Parameters:
Name Type Description start
String stop
String -
StartMappingPoint()
-
开始鼠标点击事件
-
StopMappingPoint()
-
停止鼠标点位测量
-
ZoomToEntity(nID)
-
切换至实体视角
Parameters:
Name Type Description nID
Number