---
title: "AttributionControlOptions | 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 AttributionControlOptions

The [AttributionControl](https://docs.maptiler.com/sdk-js/api-reference/classes/AttributionControl/) options object

interface AttributionControlOptions {  
    [compact](#compact)?: boolean | "auto";  
    [customAttribution](#customattribution)?: string | string\[\];  
}

##### Index

### Properties[](#properties)

[compact?](#compact) [customAttribution?](#customattribution)

## Properties[](#properties-1)

### `Optional`compact[](#compact)

compact?: boolean | "auto"

If `true`, the attribution control will always collapse when moving the map. If `false` (default), use expanded attribution control that is always visible. If `"auto"` or `undefined`, use responsive attribution that collapses when the user moves the map on maps less than 640 pixels wide. **Attribution should not be collapsed if it can comfortably fit on the map. `compact` should only be used to modify default attribution when map size makes it impossible to fit default attribution. Always prefer `"auto"` to `true` to show the attribution uncollapsed on large maps.**

### `Optional`customAttribution[](#customattribution)

customAttribution?: string | string\[\]

Attributions to show in addition to any other attributions.
