fromUrl

suspend external fun fromUrl(url: Resource, options: VRTheWorldTerrainProvider.ConstructorOptions? = definedExternally): VRTheWorldTerrainProvider(source)

Creates a TerrainProvider that produces terrain geometry by tessellating height maps retrieved from a VT MÄK VR-TheWorld server.

const terrainProvider = await VRTheWorldTerrainProvider.fromUrl(
"https://www.vr-theworld.com/vr-theworld/tiles1.0.0/73/"
);
viewer.terrainProvider = terrainProvider;

Parameters

url

The URL of the VR-TheWorld TileMap.

options

An object describing initialization options.

See also


suspend external fun fromUrl(url: String, options: VRTheWorldTerrainProvider.ConstructorOptions? = definedExternally): VRTheWorldTerrainProvider(source)