---
title: "Worker | 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.

# Variable Worker

Worker: {  
    prototype: [Worker](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Worker/);  
    new (scriptURL: string | URL, options?: [WorkerOptions](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WorkerOptions/)): [Worker](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Worker/);  
}

#### Type Declaration

-   -   new (scriptURL: string | URL, options?: [WorkerOptions](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WorkerOptions/)): [Worker](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Worker/)
    -   #### Parameters
        
        -   scriptURL: string | URL
        -   `Optional`options: [WorkerOptions](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WorkerOptions/)
        
        #### Returns [Worker](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Worker/)
        
-   ##### prototype: [Worker](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Worker/)
