<iframe src="https://developers.devsite.google/frame/maps/documentation/javascript/reference/settings_a3bc28b1375d0447903aadab0149d4127a140b14160868a51a02c8a032b7e026.frame" class="framebox inherit-locale redirect-iframe" allow="clipboard-write https://developers.devsite.google" allowfullscreen is-upgraded></iframe>

## [Settings](https://developers.google.com/maps/documentation/javascript/reference/settings.md.txt#Settings)
class


class
`google.maps.Settings`

library `"core"`

Settings which control the behavior of the Maps JavaScript API as a whole.

```javascript
const {Settings} = await google.maps.importLibrary("core");
```

| ### Static Methods ||
|---|---|
| `getInstance` | `getInstance()` **Parameters:** None **Return Value:** `Settings` Returns the singleton instance of `google.maps.Settings`. |

| ### Properties ||
|---|---|
| `![Beta](data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M20.21,17.64l-6.15-8.22V5.57h2.57V3H6.35v2.57h2.57v3.86l-6.3,8.4c-0.44,0.6-0.5,1.41-0.15,2.08C2.8,20.58,3.49,21,4.24,21h14.5c1.11,0,2.01-0.9,2.01-2.01C20.75,18.48,20.53,18,20.21,17.64z' fill='%2301579b'/%3E%3C/svg%3E "Beta")contentTokens` readonly | > [!WARNING] > **Notice:** Available only in the [v=beta channel](https://developers.google.com/maps/documentation/javascript/versions.md.txt#choosing-the-beta-channel). **Type:** `Iterable<string>` A collection of unique content tokens generated by other services. The returned value is a copy of the internal value that is stored in the `Settings` instance. Operations on `.contentTokens` will therefore only modify the copy and not the internal value. To update the internal value, use `addContentTokens()` on the singleton instance (ex: `Settings.getInstance().addContentTokens([token])`). |
| `![Beta](data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M20.21,17.64l-6.15-8.22V5.57h2.57V3H6.35v2.57h2.57v3.86l-6.3,8.4c-0.44,0.6-0.5,1.41-0.15,2.08C2.8,20.58,3.49,21,4.24,21h14.5c1.11,0,2.01-0.9,2.01-2.01C20.75,18.48,20.53,18,20.21,17.64z' fill='%2301579b'/%3E%3C/svg%3E "Beta")experienceIds` readonly | > [!WARNING] > **Notice:** Available only in the [v=beta channel](https://developers.google.com/maps/documentation/javascript/versions.md.txt#choosing-the-beta-channel). **Type:** `Iterable<string>` A collection of unique experience IDs to which to attribute Maps JS API calls. The returned value is a copy of the internal value that is stored in the `Settings` class singleton instance. Operations on `google.maps.Settings.getInstance().experienceIds` will therefore only modify the copy and not the internal value. To update the internal value, set the property equal to the new value on the singleton instance (ex: `google.maps.Settings.getInstance().experienceIds = [experienceId];`). |
| `fetchAppCheckToken` | **Type:** `function(): Promise<MapsAppCheckTokenResult>` Set this property to a function that returns a promise which resolves to a Firebase App Check token result. |

| ### Methods ||
|---|---|
| `![Beta](data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M20.21,17.64l-6.15-8.22V5.57h2.57V3H6.35v2.57h2.57v3.86l-6.3,8.4c-0.44,0.6-0.5,1.41-0.15,2.08C2.8,20.58,3.49,21,4.24,21h14.5c1.11,0,2.01-0.9,2.01-2.01C20.75,18.48,20.53,18,20.21,17.64z' fill='%2301579b'/%3E%3C/svg%3E "Beta")addContentTokens` | > [!WARNING] > **Notice:** Available only in the [v=beta channel](https://developers.google.com/maps/documentation/javascript/versions.md.txt#choosing-the-beta-channel). `addContentTokens(contentTokens)` **Parameters:** - `contentTokens: Iterable<string> optional` **Return Value:** `void` Registers content tokens. |

## [MapsAppCheckTokenResult](https://developers.google.com/maps/documentation/javascript/reference/settings.md.txt#MapsAppCheckTokenResult)
interface


interface
`google.maps.MapsAppCheckTokenResult`

Describes a Firebase App Check token result.

| ### Properties ||
|---|---|
| `token` | **Type:** `string` The Firebase App Check token. |