---
title: "WorkerSourceConstructor | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Interface WorkerSourceConstructor

This is how the

#### See[](#see)

[WorkerSource](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WorkerSource/) constructor should look like.

interface WorkerSourceConstructor {  
    new [WorkerSourceConstructor](#constructorworkersourceconstructor)(  
        actor: [IActor](https://docs.maptiler.com/sdk-js/api-reference/interfaces/IActor/),  
        layerIndex: [StyleLayerIndex](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.StyleLayerIndex/),  
        availableImages: string\[\],  
    ): [WorkerSource](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WorkerSource/);  
}

##### Index

### Constructors

[constructor](#constructor)

## Constructors

### constructor[](#constructor)

-   new WorkerSourceConstructor(  
        actor: [IActor](https://docs.maptiler.com/sdk-js/api-reference/interfaces/IActor/),  
        layerIndex: [StyleLayerIndex](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.StyleLayerIndex/),  
        availableImages: string\[\],  
    ): [WorkerSource](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WorkerSource/)[](#constructorworkersourceconstructor)
    
    #### Parameters
    
    -   actor: [IActor](https://docs.maptiler.com/sdk-js/api-reference/interfaces/IActor/)
    -   layerIndex: [StyleLayerIndex](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.StyleLayerIndex/)
    -   availableImages: string\[\]
    
    #### Returns [WorkerSource](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WorkerSource/)
