fromUrl
suspend 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;
Content copied to clipboard
Parameters
url
The URL of the VR-TheWorld TileMap.
options
An object describing initialization options.
See also
suspend fun fromUrl(url: String, options: VRTheWorldTerrainProvider.ConstructorOptions? = definedExternally): VRTheWorldTerrainProvider(source)