> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# withMapboxToken()

- Package: [@gooddata/sdk-ui-geo](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-geo/index.md)
- Kind: function
- Deprecated
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-geo/src/core/MapboxTokenProvider.tsx

> Warning: This API is now obsolete.
> 
> Kept only for the legacy Mapbox-based implementation.
> 

**Signature:**

```typescript
export declare function withMapboxToken<T extends {
    config?: IGeoConfig;
}>(InnerComponent: ComponentType<T>): ComponentType<T>;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| InnerComponent | ComponentType&lt;T&gt; |  |

**Returns:**

ComponentType&lt;T&gt;
