Skip to content

Function: loadSurface()

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

Defined in: src/loaders.ts:433

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

Returns

Promise<SurfaceGeometry>

Released under the MIT License.