# We removed the option to remove the attribution

`@mapmap/maps` 0.8.0 took two options off its own API surface. `logo: false` no longer takes the MapMap mark off the map, and `mapOptions: { attributionControl: false }` no longer takes off the OpenStreetMap credit. Both still type-check, neither throws, and nothing stops compiling: they are accepted, ignored and reported with one `console.warn` per map. Since 0.14.0 on 1 October, `attributionControl: { compact: true }` is refused the same way, so the credit is always shown in full. Map data rendered through the SDK derives from OpenStreetMap under ODbL, so "© OpenStreetMap contributors" is a licence condition rather than a courtesy, and the honest way to hold a customer to an obligation they inherit from us is to make compliance the default that cannot be switched off.

## What exactly changed in 0.8.0?

Two escape hatches closed in 0.8.0, and a third in 0.14.0. The first was an ordering bug with a licence consequence: the constructor set `attributionControl: { compact: false }` and then spread `...options.mapOptions` over it, so a caller's `false` won and MapLibre installed no attribution control at all. The SDK now resolves the attribution options first and applies them after the spread, so `false` can no longer win. The second was deliberate and documented: `logo: false` removed the MapMap mark, and the control is now always added. Carrying the mark is a condition of the `@mapmap/maps` licence, which is the same model MapLibre's own upstream, Mapbox GL JS, moved to at v2. The third was quieter: `compact: true` collapsed the credit behind an (i) button that most people never open, and MapLibre collapses it on its own on a narrow map. Since 0.14.0 the SDK forces `compact: false` after your options, so neither path hides the line.

Neither input throws, and that was a decision rather than an oversight. Both were published, documented options. A hard failure would break a customer's build on an upgrade they did not ask to be a migration. So the SDK accepts the input, ignores it and says so:

```text
MapMap [attribution-removal]: mapOptions.attributionControl: false is ignored - the OpenStreetMap attribution stays on. The credit is a condition of the ODbL that the map data is served under, for MapMap and for you. Pass { customAttribution } to add your own credit alongside it.
MapMap [attribution-compact]: mapOptions.attributionControl: { compact: true } is ignored - the map credit is always shown in full, with no (i) button. A collapsed credit is one most people never open, and the ODbL asks for it to be visible.
MapMap [logo-removal]: logo: false is ignored - the MapMap mark stays on the map. Carrying the mark is a condition of the @mapmap/maps licence. Pass logo: { position } to move it to another corner.
```

One line per refused option, per map. Not per render: a theme swap fires `style.load` again and the notice does not repeat. It is per map instance rather than per page, because a second map that asks to be unbranded is its own licence problem and deserves its own line.

## Why take a capability away from your own customers?

Because the alternative is a licence term nobody reads. The obligation is real: map data derives from OpenStreetMap under ODbL, and anything you render or republish from it must credit "© OpenStreetMap contributors". We can write that in [the licensing docs](/docs/licensing), and we do. We can put it in the SDK licence file, and we do. But a documented obligation plus an API flag that violates it is a trap, and the customer who trips it is the one holding the breach.

The compiled styles already did their part. Every style carries `© OpenStreetMap contributors © OpenMapTiles` on its tile source and style validation rejects a theme that drops either, which we wrote about in [attribution being structural rather than a checkbox](/news/vector-tiles-and-styles). The SDK was the remaining hole: correct data, correct style and a constructor option that unmounted the control rendering it. Static map images had the same discipline from the start and always carry both the OpenStreetMap attribution and the MapMap mark.

This will annoy some people. A developer who passed `logo: false` on purpose, shipped a clean-looking embed, and now sees a wordmark reappear on upgrade has a reasonable complaint about the surprise, and none at all about the outcome. We would rather take that complaint than have a customer discover in a licence review that the map they shipped for a year was not compliant, on a default we handed them.

## What is still configurable?

Placement is configurable. Presence is not. That distinction is the whole design.

| Option | Behaviour |
|---|---|
| `attributionPosition` | Mounts the credit at `"bottom-left"`, `"bottom-right"`, `"top-left"` or `"top-right"`. Default `"bottom-left"` |
| `mapOptions.attributionControl: { customAttribution }` | Adds your own credit alongside the OpenStreetMap one |
| `logo: { position }` | Moves the mark to any of the four corners. Default `"bottom-right"` |
| `logo: { href }` | Relinks the mark. Default the MapMap site |
| `mapOptions.attributionControl: false` | Ignored, one `console.warn` per map |
| `mapOptions.attributionControl: { compact: true }` | Ignored since 0.14.0, one `console.warn` per map. The credit is always expanded |
| `logo: false` | Ignored, one `console.warn` per map |

Everything a caller legitimately wants still works:

```ts
import "maplibre-gl/dist/maplibre-gl.css";
import { createMap } from "@mapmap/maps";

const map = createMap({
  container: "map",
  apiKey: "snk_...",
  attributionPosition: "bottom-left",
  mapOptions: {
    attributionControl: { customAttribution: "© Acme Logistics" },
  },
  logo: { position: "bottom-right", href: "https://example.com/brand" },
});
await map.whenReady();
```

`attributionPosition` is the newest piece, and it exists because two real consumer apps were reaching into `map._controls` to relocate the credit by hand. Digging a control out of a map's internals to move it is a sign that the supported option should have existed, so now it does. It chooses the corner and nothing else: combining `attributionPosition` with `attributionControl: false` still gets you the credit, in the corner you asked for.

## Where do the mark and the credit sit by default?

Attribution in small print bottom-left, the MapMap mark bottom-right, never stacked in the same corner. That is the canonical layout and the SDK now produces it with zero configuration.

It did not, before. MapLibre's constructor mounts the attribution in its own default corner, bottom-right, which is the mark's corner, so every zero-config embed shipped the mark sitting on top of the credit and the SDK docs described the stacking as intended. One of our own demos "fixed" the collision by applying `display: none` to the credit, which is an ODbL breach, and that is exactly what a wrong default teaches people to do. The SDK now mounts the attribution control itself, bottom-left, and the constructor never gets the chance.

The two enforced controls never share a corner, and that is enforced too. If `attributionPosition`, `logo.position` or both put them in the same place, the mark gives way: it moves to the bottom corner on the other side, stays mounted and the SDK logs one `console.warn` naming the corner it moved to. The credit's corner is the caller's explicit choice, so the mark is the one that yields.

## What this breaks, and what we cannot enforce

It is a breaking change if you were removing either control, and 0.8.0 is the version that broke it. If your code passes `logo: false` or `mapOptions: { attributionControl: false }`, the upgrade from 0.7.0 or earlier changes what your users see: the mark and the credit both appear, and you get one console warning per refused option. Passing `{ compact: true }` as well makes three per map from 0.14.0, and a fourth appears if you put the mark in the credit's corner and it has to move. Nothing to migrate in the strict sense, because nothing fails to compile. What you should do is delete all three flags, then use `attributionPosition` if the credit is in the wrong corner and `logo: { position }` if the mark is in the way of your own controls.

Two later changes shipped separately: the bottom-left attribution default and the `attributionPosition` option. Both were merged and sitting unreleased while 0.8.0 was the published version, so for six days no customer on npm had them. They were versioned 0.9.0 in the repository, that version never reached npm, and the first published release carrying them is **0.10.0** on 9 August. If you are pinned below 0.10.0 you have the enforcement but not the placement fix, which is the combination most likely to send someone reaching for `display: none` on the credit. The compact refusal followed in 0.14.0 on 1 October. Releases since then support MapLibre GL JS 5 and 6, and 0.26.0 was the release on npm on 25 November 2026. Take at least 0.14.0, and read the README in your installed copy rather than assuming a version number tells you which of these behaviours you have.

The honest boundary is this: we control our SDK, and that is all we control. `@mapmap/maps` is a thin wrapper over MapLibre GL JS, as we set out in [the post on wrapping MapLibre rather than forking it](/news/web-maps-sdk), and `map.map` hands you the raw `maplibregl.Map` whenever our helpers stop being enough. If you render our tiles in your own MapLibre client, or in any other renderer, none of this enforcement reaches you. Nor does it stop anyone applying a CSS rule to the control in a MapMap map, which our own demo proved is the first thing a developer reaches for when the layout collides. What we can do is refuse to hand you the switch, ship a default that does not create the collision and be clear about the rest: the ODbL obligation applies to you whichever client you render in, and "© OpenStreetMap contributors" belongs on the map whether or not our code put it there. Our licence enforcement is the same posture we take on dependency licences, which we [publish an SBOM for rather than asking you to trust us](/news/permissive-licensing-sbom).

## Try it

Install the SDK, build a map and try to take the credits off:

```sh
npm install @mapmap/maps maplibre-gl pmtiles
```

Pass `logo: false` and `mapOptions: { attributionControl: false }` to `createMap`, open the console and read what comes back. The full option reference, including the enforcement rules and the collision behaviour, is in [the SDK documentation](/docs/sdks).
