Skip to content

Function: loadSurface() ​

ts
function loadSurface(
   url, 
   format?, 
   hemisphere?, 
   timeoutMs?, 
   autoScale?, 
   targetSize?, 
   options?
): Promise<SurfaceGeometry>;

Defined in: loaders.ts:1008

Load surface from URL with timeout and basic error handling

Parameters ​

url ​

string

format? ​

SurfaceFormat = 'auto'

hemisphere? ​

Hemisphere = 'unknown'

timeoutMs? ​

number = 30000

autoScale? ​

boolean = false

targetSize? ​

number = 100

options? ​

SurfaceLoadOptions = {}

Returns ​

Promise<SurfaceGeometry>

Released under the MIT License.