Class

GeodaWorkerProxy

GeodaWorkerProxy()

geodaWorkerProxy is the equivalent of entry point to getting a geoda proxy in through comlink. Call the worker, then New() to get access to geoda functions.

Constructor

# new GeodaWorkerProxy()

View Source src/workers/geoda.js, line 22

Methods

# async listFunctions() → {Array}

Worker functions are slightly obfuscated, so this lists out availble Prototype functions.

View Source src/workers/geoda.js, line 83

List of available functions.

Array

# async loadGeoJSON(url) → {String|GeoJson}

Pass through of readGeoJson.

Parameters:
Name Type Description
url String

The url of the geojson file to be fetched.

View Source src/workers/geoda.js, line 49

A unique id of the geoda object.

String

Fetched geodata

GeoJson

# async New() → {Boolean}

Initialize the worker with jsgeoda. Populated all jsgeoda functions in the worker for exposure through Comlink.

View Source src/workers/geoda.js, line 33

True, after loaded.

Boolean