# SiMapTooltipComponent documentation

**Kind:** component

**Selector:** `si-map-tooltip`

```
import { SiMapTooltipComponent } from '@siemens/maps-ng';
```

```
component SiMapTooltipComponent
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [maxLabelLength](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/components/si-map-tooltip/si-map-tooltip.component.ts#L42-L42>) | `number` | `50` | Adds the maximum length of a string thats allowed in a tooltip and if its longer it cuts off the rest and adds 3 dots at the end. If set to -1, it will not cut off the string. |
| [moreText](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/components/si-map-tooltip/si-map-tooltip.component.ts#L33-L35>) | `TranslatableString` | `` $localize`:@@SI_MAPS.TOOLTIP_MORE_TEXT:+ {{length}} locations` `` | Cutoff text for tooltips, when cluster combines more than 4 features |

#### Attributes and Methods

##### nativeElement

[Source for nativeElement](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/components/si-map-tooltip/si-map-tooltip.component.ts#L44-L46>)

**Modifiers:** readonly

**Type:** `HTMLElement`

##### setTooltip

[Source for setTooltip](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/components/si-map-tooltip/si-map-tooltip.component.ts#L59-L65>)

Method sets tooltip content. If parameter is of type string, it will directly set it as tooltip content. If it is array of string, it will render it as list of those strings.

```
setTooltip(labels: string | string[]): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [labels](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/components/si-map-tooltip/si-map-tooltip.component.ts#L59-L59>) | `string \| string[]` |  | • array of strings or string itself |

**Returns:** [void](<https://www.typescriptlang.org/docs/handbook/2/functions.html#void>)

### Types Documentation

### [TranslatableString](<https://github.com/siemens/element/blob/main/projects/element-translate-ng/translate-types/global.types.ts#L18-L18>)

**Kind:** type alias

```
import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';
```

Represents a translatable string. This can either be a translation key, e.g. `ACTIONS.EDIT` that will be automatically translated when displayed on the UI or a pre-translated string, e.g. `Edit`. Equivalent to a normal string in usage and functionality.

```
type TranslatableString = string & Translatable
```
