Skip to Content
APIConfigurationFunction: getMapLibreWorkerUrl()

Function: getMapLibreWorkerUrl()

function getMapLibreWorkerUrl(): string

The worker URL MapLibre will use, or "" when none has been set yet.

Returns a blob: URL once the bundled worker has been installed, which happens when the first map is created. Useful to assert in tests that the bundled worker is in play.

Returns

string

The current MapLibre worker URL.

Last updated on