---
title: "Config | JavaScript maps SDK"
description: "Configure global settings in MapTiler SDK JS."
---

> 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.

# Config ![MapTiler logo](https://docs.maptiler.com/favicon.ico)

The `config` object represents global settings for the SDK. It exposes properties to define global values used by the SDK, such as the API key, map units, and languages.

**Example**

```js
import * as maptilersdk from '@maptiler/sdk';

maptilersdk.config.apiKey = "YOUR_MAPTILER_API_KEY_HERE";
maptilersdk.config.primaryLanguage = maptilersdk.Language.FRENCH;
```

## API reference

[Class SdkConfig](https://docs.maptiler.com/sdk-js/api-reference/classes/SdkConfig/)
