I3DTileLayer

I3DTileLayer

new I3DTileLayer(args)

Description:
  • 3dTiles数据加载,根据传入瓦片地址加载瓦片地形
Source:
  • objects/other/3DTileLayer.js, line7
Parameters:
Name Type Description
args Object 参数
Properties
Name Type Attributes Default Description
name String <optional>
名字
url String | Array <optional>
数据的链接,例如http://localhost:portNumber/path/tileset/tileset.json
visible Boolean <optional>
true 是否可见,默认ture
token string <optional>
null Cesium的access token,如果数据是Cesium ion上的需要改值,默认null
offset object <optional>
{x:0,y:0,z:0} 偏移量,可以用来调整整个数据的位置,默认{x:0,y:0,z:0},单位 米;
maxDepth Number <optional>
最大深度,精度阈值,控制瓦片是否加载的条件之一

Extends

Members

(readonly) animateNeedsUpdate

Source:
  • objects/Shape/Shape.js, line814
Inherited From:
Properties:
Name Type Description
animateNeedsUpdate Boolean 动画是否变化

depthTest

Source:
  • objects/Shape/Shape.js, line398
Inherited From:
Default Value:
  • true
Properties:
Name Type Description
depthTest boolean 是否开启深度测试

map

Description:
  • 获取贴图
Source:
  • objects/Shape/Shape.js, line134
Overrides:
获取贴图

(readonly) materialNeedsUpdate

Source:
  • objects/Shape/Shape.js, line802
Inherited From:
Properties:
Name Type Description
materialNeedsUpdate Boolean 记录材质是否变化

(readonly) matrixNeedsUpdate

Source:
  • objects/Shape/Shape.js, line796
Inherited From:
Properties:
Name Type Description
matrixNeedsUpdate Boolean 记录空间是否变化

transparent

Source:
  • objects/Shape/Shape.js, line393
Inherited From:
Default Value:
  • opacity < 1.0
Properties:
Name Type Description
transparent boolean 是否透明

visible

Description:
  • 获取可见性状态
Source:
  • objects/Shape/Shape.js, line113
Overrides:
获取可见性状态

(readonly) visibleNeedsUpdate

Source:
  • objects/Shape/Shape.js, line808
Overrides:
Properties:
Name Type Description
visibleNeedsUpdate Boolean 记录显隐是否变化

Methods

animate(options) → {TWEEN.Tween}

Description:
  • 动画函数,to中的animateOffset表示位置偏移单位cm
Source:
  • objects/Shape/Shape.js, line828
Inherited From:
Parameters:
Name Type Description
options object {from, to, duration, easing, loop}
Properties
Name Type Description
from object 起始值{position:null,rotation:null,scale:null} 可不设置,不设置就是当前状态
to object 结束值{position:{x,y,z},rotation:{roll,pitch,yaw},scale:{x,y,z},animateOffset:{x,y,z}}
duration number 动画持续时间,默认3000豪秒,单位豪秒
easing string 缓动函数 默认Linear,可选 Quadratic,Cubic,Sinusoidal,Exponential
loop boolean 是否循环,默认false
stayEnd boolean 动画结束后是否停留在最后一帧的位置,默认true
Returns:
返回Tween对象,可以调用stop()方法停止动画,onUpdate的时候会返回一个0-1的渐变值
Type
TWEEN.Tween

setData(geoJsonData)

Description:
  • 数据赋值与预处理
Source:
  • objects/Shape/Shape.js, line905
Inherited From:
Parameters:
Name Type Description
geoJsonData object geojson格式的几何信息

slopeAnalysis(enable, options)

Description:
  • 执行坡度分析
Source:
  • objects/other/3DTileLayer.js, line61
Parameters:
Name Type Description
enable boolean 是否启用坡度分析
options object 坡度分析选项,默认为空对象
Properties
Name Type Description
minSlope number 坡度最小值,默认为0度
maxSlope number 坡度最大值,默认为90度
minColor object 坡度最小对应的颜色,默认为{r:0,g:1,b:1}
maxColor object 坡度最大对应的颜色,默认为{r:1,g:0,b:0}
minCoordinate object 坡度分析的地理范围最小坐标,默认为{x:0,y:0},经纬度
maxCoordinate object 坡度分析的地理范围最大坐标,默认为{x:100,y:100},经纬度

stopAnimate(delayTime)

Description:
  • 停止动画
Source:
  • objects/Shape/Shape.js, line891
Inherited From:
Parameters:
Name Type Default Description
delayTime 1000 延迟时间,默认为1000毫秒