fromUrl
suspend fun fromUrl(url: Any, options: ArcGISTiledElevationTerrainProvider.ConstructorOptions? = definedExternally): ArcGISTiledElevationTerrainProvider(source)
Creates a TerrainProvider that produces terrain geometry by tessellating height maps retrieved from Elevation Tiles of an an ArcGIS ImageService.
const terrainProvider = await ArcGISTiledElevationTerrainProvider.fromUrl("https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer", {
token: "KED1aF_I4UzXOHy3BnhwyBHU4l5oY6rO6walkmHoYqGp4XyIWUd5YZUC1ZrLAzvV40pR6gBXQayh0eFA8m6vPg.."
});
viewer.terrainProvider = terrainProvider;
Content copied to clipboard
Parameters
url
The URL of the ArcGIS ImageServer service.
options
A url or an object describing initialization options.