---
title: Class: MiniMapControl
source: https://vjmap.com/doc/Class_MiniMapControl.html
---

# Class: MiniMapControl

### Table of contents

#### Constructors

- [constructor](#constructor)

#### Methods

- [\_convertBoundsToPoints](#_convertboundstopoints)
- [\_createContainer](#_createcontainer)
- [\_load](#_load)
- [\_mouseDown](#_mousedown)
- [\_mouseMove](#_mousemove)
- [\_mouseUp](#_mouseup)
- [\_moveTrackingRect](#_movetrackingrect)
- [\_onAdd](#_onadd)
- [\_onRemove](#_onremove)
- [\_onSize](#_onsize)
- [\_preventDefault](#_preventdefault)
- [\_setTrackingRectBounds](#_settrackingrectbounds)
- [\_update](#_update)
- [\_updateMapExtent](#_updatemapextent)
- [\_zoomAdjust](#_zoomadjust)
- [getDefaultPosition](#getdefaultposition)
- [getMap](#getmap)
- [init](#init)
- [onAdd](#onadd)
- [onRemove](#onremove)

### Constructors

#### constructor

\+ **new MiniMapControl**(`options`: [*MiniMapControlOption*](#interfacesdefaultminimapcontroloptionmd)): [*MiniMapControl*](#classesdefaultminimapcontrolmd)

##### Parameters

| Name | Type |
| :------ | :------ |
| `options` | [*MiniMapControlOption*](#interfacesdefaultminimapcontroloptionmd) |

**Returns:** [*MiniMapControl*](#classesdefaultminimapcontrolmd)

### Methods

#### \_convertBoundsToPoints

▸ **_convertBoundsToPoints**(`bounds`: *any*): *void*

##### Parameters

| Name | Type |
| :------ | :------ |
| `bounds` | *any* |

**Returns:** *void*

___

#### \_createContainer

▸ **_createContainer**(`parentMap`: *Map*): HTMLDivElement

##### Parameters

| Name | Type |
| :------ | :------ |
| `parentMap` | *Map* |

**Returns:** HTMLDivElement

___

#### \_load

▸ **_load**(): *void*

**Returns:** *void*

___

#### \_mouseDown

▸ **_mouseDown**(`e`: *any*): *void*

##### Parameters

| Name | Type |
| :------ | :------ |
| `e` | *any* |

**Returns:** *void*

___

#### \_mouseMove

▸ **_mouseMove**(`e`: *any*): *void*

##### Parameters

| Name | Type |
| :------ | :------ |
| `e` | *any* |

**Returns:** *void*

___

#### \_mouseUp

▸ **_mouseUp**(): *void*

**Returns:** *void*

___

#### \_moveTrackingRect

▸ **_moveTrackingRect**(`offset`: *any*): *any*

##### Parameters

| Name | Type |
| :------ | :------ |
| `offset` | *any* |

**Returns:** *any*

___

#### \_onAdd

▸ **_onAdd**(`parentMap`: *Map*): HTMLElement

##### Parameters

| Name | Type |
| :------ | :------ |
| `parentMap` | *Map* |

**Returns:** HTMLElement

___

#### \_onRemove

▸ **_onRemove**(): *void*

**Returns:** *void*

___

#### \_onSize

▸ **_onSize**(): *void*

**Returns:** *void*

___

#### \_preventDefault

▸ **_preventDefault**(`e`: *any*): *void*

##### Parameters

| Name | Type |
| :------ | :------ |
| `e` | *any* |

**Returns:** *void*

___

#### \_setTrackingRectBounds

▸ **_setTrackingRectBounds**(`bounds`: *any*): *void*

##### Parameters

| Name | Type |
| :------ | :------ |
| `bounds` | *any* |

**Returns:** *void*

___

#### \_update

▸ **_update**(`e`: *any*): *void*

##### Parameters

| Name | Type |
| :------ | :------ |
| `e` | *any* |

**Returns:** *void*

___

#### \_updateMapExtent

▸ **_updateMapExtent**(`data`: *any*): *void*

##### Parameters

| Name | Type |
| :------ | :------ |
| `data` | *any* |

**Returns:** *void*

___

#### \_zoomAdjust

▸ **_zoomAdjust**(): *void*

**Returns:** *void*

___

#### getDefaultPosition

▸ **getDefaultPosition**(): *string*

**Returns:** *string*

___

#### getMap

▸ **getMap**(): *Map*

**Returns:** *Map*

___

#### init

▸ **init**(`options`: [*MiniMapControlOption*](#interfacesdefaultminimapcontroloptionmd)): *void*

##### Parameters

| Name | Type |
| :------ | :------ |
| `options` | [*MiniMapControlOption*](#interfacesdefaultminimapcontroloptionmd) |

**Returns:** *void*

___

#### onAdd

▸ **onAdd**(`parentMap`: *Map*): HTMLElement

##### Parameters

| Name | Type |
| :------ | :------ |
| `parentMap` | *Map* |

**Returns:** HTMLElement

___

#### onRemove

▸ **onRemove**(): *void*

**Returns:** *void*


<a name="classesmousepositioncontrolmd"></a>

[vjmap](#readmemd) / [Exports](#modulesmd) / MousePositionControl
