new Cesium.VRTheWorldTerrainProvider(options)

要构建 VRThe WorldTrain Provider,请拨打 VRTheWorldTerrainProvider.fromUrl . 不要直接给建筑师打电话.
A TerrainProvider that produces terrain geometry by tessellating height maps retrieved from a VT MÄK VR-TheWorld server.
Name Type Description
options VRTheWorldTerrainProvider.ConstructorOptions optional 一个描述初始化选项的对象 .
Example:
const terrainProvider = await Cesium.VRTheWorldTerrainProvider.fromUrl(
  "https://www.vr-theworld.com/vr-theworld/tiles1.0.0/73/"
);
viewer.terrainProvider = terrainProvider;
See:

Members

readonly availability : TileAvailability|undefined

从此提供者获取一个可用于确定地形可用的对象, 例如 在点和矩形上。 如果可用, 此属性可能未定义 资料不详.

readonly credit : Credit

当此地形提供者活动时, 获取信用值以显示 。 通常,这是用来信用的 地形的来源.

readonly errorEvent : Event

获得一个在地形提供者遇到同步错误时上升的事件 。 通过签名 对事件,您将被通知错误,并有可能从中恢复。 活动听众 are passed an instance of TileProviderError.

readonly hasVertexNormals : boolean

获得一个表示所请求的牌是否包含顶点正常值的值.

readonly hasWaterMask : boolean

获得一个表示提供者是否包含水面罩的值 。 那个水面罩 说明全球哪些地区是水而不是土地,以便加以制造 作为带有动画波的反射面.

readonly tilingScheme : GeographicTilingScheme

获得此提供者使用的平板方案 .

Methods

static Cesium.VRTheWorldTerrainProvider.fromUrl(url, options)Promise.<VRTheWorldTerrainProvider>

Creates a TerrainProvider that produces terrain geometry by tessellating height maps retrieved from a VT MÄK VR-TheWorld server.
Name Type Description
url Resource | string VR-The World TileMap的 URL . 星洲网.
options VRTheWorldTerrainProvider.ConstructorOptions optional 一个描述初始化选项的对象 .
Returns:
Throws:
Example:
const terrainProvider = await Cesium.VRTheWorldTerrainProvider.fromUrl(
  "https://www.vr-theworld.com/vr-theworld/tiles1.0.0/73/"
);
viewer.terrainProvider = terrainProvider;

getLevelMaximumGeometricError(level)number

获得特定关卡的瓷砖中允许的最大几何错误.
Name Type Description
level number 得到最大几何误差的瓦片级别.
Returns:
最大几何错误 .

getTileDataAvailable(x, y, level)boolean|undefined

确定是否有可加载的瓦片数据.
Name Type Description
x number 用于请求几何的瓷砖的X坐标.
y number 用于请求几何的瓦片的Y坐标.
level number 用于请求几何的瓦片的级别.
Returns:
未定义或未支持, 否则为真或虚假 .

loadTileDataAvailability(x, y, level)undefined|Promise.<void>

确保加载一个瓦片的可用数据
Name Type Description
x number 用于请求几何的瓷砖的X坐标.
y number 用于请求几何的瓦片的Y坐标.
level number 用于请求几何的瓦片的级别.
Returns:
如果不需要加载, 或装入需要的牌时解决的 NT% 0 则未定义

requestTileGeometry(x, y, level, request)Promise.<TerrainData>|undefined

请求给定的瓦片的几何 。 结果包括地形 数据,并表明所有的儿童瓷砖都有.
Name Type Description
x number 用于请求几何的瓷砖的X坐标.
y number 用于请求几何的瓦片的Y坐标.
level number 用于请求几何的瓦片的级别.
request Request optional 请求对象 。 仅供内部使用.
Returns:
对要求的几何学的承诺. 如果这种方法 返回未定义而不是承诺,这表明已经有很多请求 待决,请求将在晚些时候重新审理.

Type Definitions

Cesium.VRTheWorldTerrainProvider.ConstructorOptions

VRThe WorldTrain 设计器的初始化选项
Properties:
Name Type Attributes Default Description
ellipsoid Ellipsoid <optional>
Ellipsoid.default The ellipsoid. If not specified, the default ellipsoid is used.
credit Credit | string <optional>
数据源的信用,在画布上显示.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.