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

interface MinimapOptionsInput {  
    [containerStyle](#containerstyle)?: [Record](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Record/)<string, string\>;  
    [lockZoom](#lockzoom)?: number;  
    [parentRect](#parentrect)?: [ParentRect](https://docs.maptiler.com/sdk-js/api-reference/interfaces/ParentRect/);  
    [pitchAdjust](#pitchadjust)?: boolean;  
    [position](#position)?: [ControlPosition](https://docs.maptiler.com/sdk-js/api-reference/types/ControlPosition/);  
    [style](#style)?: string | [StyleSpecification](https://docs.maptiler.com/sdk-js/api-reference/types/StyleSpecification/) | [ReferenceMapStyle](https://docs.maptiler.com/sdk-js/api-reference/classes/ReferenceMapStyle/) | [MapStyleVariant](https://docs.maptiler.com/sdk-js/api-reference/classes/MapStyleVariant/);  
    [zoomAdjust](#zoomadjust)?: number;  
}

##### Index

### Properties[](#properties)

[containerStyle?](#containerstyle) [lockZoom?](#lockzoom) [parentRect?](#parentrect) [pitchAdjust?](#pitchadjust) [position?](#position) [style?](#style) [zoomAdjust?](#zoomadjust)

## Properties[](#properties-1)

### `Optional`containerStyle[](#containerstyle)

containerStyle?: [Record](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Record/)<string, string\>

Set CSS properties of the container using object key-values

### `Optional`lockZoom[](#lockzoom)

lockZoom?: number

Set a zoom of the minimap and don't allow any future changes

### `Optional`parentRect[](#parentrect)

parentRect?: [ParentRect](https://docs.maptiler.com/sdk-js/api-reference/interfaces/ParentRect/)

Set the parentRect fill and/or line options

### `Optional`pitchAdjust[](#pitchadjust)

pitchAdjust?: boolean

Adjust the pitch only if the user requests

### `Optional`position[](#position)

position?: [ControlPosition](https://docs.maptiler.com/sdk-js/api-reference/types/ControlPosition/)

Set the position of the minimap at either "top-left", "top-right", "bottom-left", or "bottom-right"

### `Optional`style[](#style)

style?: string | [StyleSpecification](https://docs.maptiler.com/sdk-js/api-reference/types/StyleSpecification/) | [ReferenceMapStyle](https://docs.maptiler.com/sdk-js/api-reference/classes/ReferenceMapStyle/) | [MapStyleVariant](https://docs.maptiler.com/sdk-js/api-reference/classes/MapStyleVariant/)

Style of the map. Can be:

-   a full style URL (possibly with API key)
-   a shorthand with only the MapTIler style name (eg. `"streets-v2"`)
-   a longer form with the prefix `"maptiler://"` (eg. `"maptiler://streets-v2"`)

### `Optional`zoomAdjust[](#zoomadjust)

zoomAdjust?: number

Set the zoom difference between the parent and the minimap If the parent is zoomed to 10 and the minimap is zoomed to 8, the zoomAdjust should be 2 Default: -4
