# SiMapComponent documentation

**Kind:** component

**Selector:** `si-map`

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

```
component SiMapComponent implements AfterViewInit, OnChanges, OnDestroy, AfterViewChecked
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [alwaysShowLabels](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L268-L268>) | `boolean` | `false` | Show the label permanently next to the point. Normally the label is shown on hover or click. By enabling this it will always be visible next to the marker. |
| [autoZoomClusterClick](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L213-L213>) | `boolean` | `true` | When disabled, clusters will no longer automatically be zoomed to on click. |
| [autoZoomFeatureClick](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L207-L207>) | `boolean` | `false` | When enabled, features will be automatically zoom to on click. |
| [cluster](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L112-L112>) | `boolean` | `false` | Enable or disable clustering of points on the map. |
| [clusterClickZoom](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L195-L195>) | `number` | `DEFAULT_CLUSTER_CLICK_ZOOM` | Max zoom level for clicking on a cluster on the map. Defaults to 15. |
| [clusterDistance](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L175-L175>) | `number` | `DEFAULT_CLUSTER_DISTANCE` | Defines range in which points are clustered. In pixels. |
| [clusterPopoverComponent](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L222-L222>) | `Type<any> \| undefined` |  | Custom popover component for clustering |
| [displayPopoverOnClick](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L148-L148>) | `boolean` | `true` | Option to switch on/off the display of popover when clicked. Default set to true (on). |
| [displayPopoverOnHover](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L156-L156>) | `boolean` | `false` | Option to switch on/off popover when hovered. Default is set to false (off) |
| [displayTooltipOnClusterHover](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L169-L169>) | `boolean` | `false` | Option to switch on/off the display of tooltip while hovering over cluster. |
| [displayTooltipOnHover](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L141-L141>) | `boolean` | `false` | Option to switch on/off the display of tooltip while hovering over single point. |
| [featureClickZoom](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L189-L189>) | `number` | `DEFAULT_FEATURE_CLICK_ZOOM` | Max zoom level which is used when clicking on feature on the map. Defaults to 15. |
| [featureSelectZoom](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L182-L182>) | `number` | `DEFAULT_FEATURE_SELECT_ZOOM` | Zoom level when calling the `select()` method on the component. Defaults to 10. |
| [fitClusterPadding](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L240-L240>) | `[number, number, number, number]` | `[20, 20, 20, 20]` | Padding (in pixels) applied to the map view when zooming to a cluster, preventing points from being clipped at the edges. Specified as \[top, right, bottom, left\]. |
| [fitGeoJsonPadding](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L254-L254>) | `number[]` | `[20, 20, 20, 20]` | For GeoJson, padding (in pixels) to be cleared to fit the GeoJson inside the view after a click on it. Values in the array are: \[top, right, bottom, left\]. |
| [fitPointPadding](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L247-L247>) | `number[]` | `[20, 20, 20, 20]` | For Point geometry, padding (in pixels) to be cleared to fit the point inside the view after a click on it. Values in the array are: \[top, right, bottom, left\]. |
| [geoJson](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L90-L90>) | `any` |  | Payload of a geo-JSON object. |
| [geoJsonProjection](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L100-L100>) | `string` | `'EPSG:3857'` | Projection format used to render the geo-JSON payload. |
| [globalZoom](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L201-L201>) | `number` | `DEFAULT_GLOBAL_ZOOM` | Max zoom level on load or when clicking the reset button. Defaults to 5. |
| [groupColors](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L120-L120>) | `Record<number, string> \| ColorPalette` | `'status'` | Defines which colors should be used when points are grouped. Grouping means that points are painted with their group color and they are displayed as series in donut chart inside cluster. |
| [maptilerKey](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L163-L163>) | `string \| undefined` |  | Provide your key for MapTiler, this will use the default siemens element styles which can be used in both light and dark mode. Shouldn't be used together with styleJson. |
| [markerAnimation](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L106-L106>) | `boolean` | `false` | Enable or disable animation of markers. |
| [maxLabelLineLength](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L278-L278>) | `number` | `20` | Maximum number of characters per line for always displayed labels of a point. If the label exceeds this limit, it will be wrapped or trimmed. If set to 0, label trimming will be disabled. This setting is effective only when [alwaysShowLabels](<index.html#SiMapComponent.alwaysShowLabels>) is enabled. Important: Changing this is not recommended in most cases and may cause issues with positioning of the labels. |
| [maxLabelLines](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L287-L287>) | `number` | `3` | Maximum number of lines for always displayed labels of a point. If the label exceeds this limit, it will be trimmed. This setting is effective only when [alwaysShowLabels](<index.html#SiMapComponent.alwaysShowLabels>) is enabled and [maxLabelLineLength](<index.html#SiMapComponent.maxLabelLineLength>) is not 0. Important: Changing this is not recommended in most cases and may cause issues with positioning of the labels. |
| [multiWorld](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L260-L260>) | `boolean` | `true` | Show multiple worlds, including points that cross the 180th meridian. |
| [nativeProperties](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L127-L127>) | `OverlayNativeProperties \| undefined` |  | • **overlay**: Layer for popup element, an element to be displayed over the map and attached to a single map location.<br><br>• **controls**: List of controls to activate for map, additional controls like full screen, etc. can be added here. |
| [points](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L86-L86>) | `MapPoint[] \| undefined` |  | Points to be rendered on the map as features. |
| [popoverCloseOnClick](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L232-L232>) | `boolean` | `true` | Close the popover on click |
| [popoverComponent](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L217-L217>) | `Type<any> \| undefined` |  | Custom popover component |
| [popoverComponentProps](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L226-L226>) | `any` |  | Custom popover component |
| [styleFunction](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L94-L94>) | `StyleLike \| undefined` |  | Callback function to add custom styling to the drawn geo-JSON features. |
| [styleJson](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L134-L134>) | `any` |  | Type of background map, for example `'https://api.maptiler.com/maps/voyager/style.json?key=xxx'` (Token key is required). The styleJson defines the tiler source and the used styles for different layers, should only be used if the siemens default styles by using `maptilerKey` isn't good enough. |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [pointsChange](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L86-L86>) | `MapPoint[] \| undefined` | Points to be rendered on the map as features. |
| [pointsRefreshed](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L295-L295>) | `void` | Emitted when the points are available as features. So consumers can call methods like `zoomToPoints()` on the actual point list. |
| [pointsSelected](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L291-L291>) | `MapPoint[]` | Emitted when points on the map are selected or de-selected |

#### Attributes and Methods

##### clear

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

```
clear(): void
```

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

##### closePopup

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

Close popup

```
closePopup(): boolean
```

**Returns:** [boolean](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean>)

##### createOverlay

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

Create overlay for tooltip and popover

```
createOverlay(container: HTMLElement, position: Positioning, nativeProperties?: OverlayNativeProperties, isTooltip?: boolean): Overlay
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [container](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L751-L751>) | `HTMLElement` |  | • to create overlay in |
| [position](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L752-L752>) | `Positioning` |  | • overlay positioning |
| [nativeProperties](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L753-L753>) (optional) | `OverlayNativeProperties` |  | • native properties |
| [isTooltip](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L754-L754>) (optional) | `boolean` |  |  |

**Returns:** [Overlay](<https://openlayers.org/>)

##### displayTooltip

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

Display tooltip on hovering over feature type of Feature.

```
displayTooltip(feats: FeatureLike[]): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [feats](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L807-L807>) | `FeatureLike[]` |  |  |

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

##### featureCallback

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

Return features inside feature object in case of cluster enabled/disabled

```
featureCallback(feat: FeatureLike, clusterHolder?: ClusterHolder): Feature<Geometry, { [x: string]: any; }>[] | undefined
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [feat](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L918-L918>) | `FeatureLike` |  | • feature to get features from |
| [clusterHolder](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L918-L918>) (optional) | `ClusterHolder` |  |  |

**Returns:** [Feature](<https://openlayers.org/>)`<`[Geometry](<https://openlayers.org/>)`, { [x: `[string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)`]: `[any](<https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any>)`; }>[] | `[undefined](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined>)

##### featureClick

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

API for feature clicking with extra properties.

```
featureClick(feature: Feature<Geometry, { [x: string]: any; }>, event?: any, zoom?: boolean): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [feature](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L1094-L1094>) | `Feature<Geometry, { [x: string]: any; }>` |  |  |
| [event](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L1094-L1094>) (optional) | `any` |  |  |
| [zoom](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L1094-L1094>) (optional) | `boolean` |  |  |

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

##### features

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

**Type:** `Feature<Geometry, { [x: string]: any; }>[]`

**Default:** `[]`

##### hideOverlays

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

```
hideOverlays(): void
```

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

##### init

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

Initialize map and it's layers

```
init(): void
```

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

##### isClicked

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

**Type:** `boolean`

**Default:** `false`

##### map

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

**Modifiers:** optional

**Type:** `Map`

OpenLayers map instance.

##### mapboxStyles

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

Set mapbox styles

```
mapboxStyles(styleJSON: any): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [styleJSON](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L725-L725>) | `any` |  | • the styleJSON as a JSON object |

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

##### onClusterClick

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

Clicking on cluster event

```
onClusterClick(event: MapBrowserEvent<PointerEvent | KeyboardEvent | WheelEvent>): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [event](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L838-L838>) | `MapBrowserEvent<PointerEvent \| KeyboardEvent \| WheelEvent>` |  | • openlayers event |

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

##### onFeatureHover

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

On feature hovering show tooltip and change cursor style

```
onFeatureHover(event: MapBrowserEvent<PointerEvent | KeyboardEvent | WheelEvent>): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [event](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L772-L772>) | `MapBrowserEvent<PointerEvent \| KeyboardEvent \| WheelEvent>` |  | • A hovering event |

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

##### onThemeSwitch

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

```
onThemeSwitch(dark: boolean): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [dark](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L426-L426>) | `boolean` |  |  |

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

##### onThemeSwitchInternal

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

```
onThemeSwitchInternal(event: Event): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [event](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L422-L422>) | `Event` |  |  |

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

##### popoverOverlay

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

**Type:** `Overlay`

##### refresh

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

Refresh points with new set of points

```
refresh(points: MapPoint[], zoomToFeatures?: boolean = true): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [points](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L999-L999>) | `MapPoint[]` |  | • to refresh with |
| [zoomToFeatures](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L999-L999>) (optional) | `boolean` | `true` |  |

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

##### select

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

Selecting the certain point on map with API

```
select(point: MapPoint, maxZoomLevel?: number): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [point](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L1068-L1068>) | `MapPoint` |  | • which select |
| [maxZoomLevel](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L1068-L1068>) (optional) | `number` |  |  |

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

##### selected

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

**Modifiers:** optional

**Type:** `Feature<Geometry, { [x: string]: any; }>`

##### setGeoJsonLayer

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

Setting up the geoJson layer

```
setGeoJsonLayer(): void
```

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

##### setMapStyle

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

Set Map style

```
setMapStyle(dark?: boolean, key?: string, styleJSON?: string): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [dark](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L703-L703>) (optional) | `boolean` |  | • boolean if dark theme should be active or not |
| [key](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L703-L703>) (optional) | `string` |  | • the api key for the maptiler styleJSON |
| [styleJSON](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L703-L703>) (optional) | `string` |  | • a preexisting styleJSON as url with key already provided |

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

##### showClusterTooltipContent

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

Sends data into cluster tooltip based on number of

```
showClusterTooltipContent(features: Feature<Geometry, { [x: string]: any; }>[], cluster?: Feature<Geometry, { [x: string]: any; }>): boolean
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [features](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L1155-L1155>) | `Feature<Geometry, { [x: string]: any; }>[]` |  | • in it |
| [cluster](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L1155-L1155>) (optional) | `Feature<Geometry, { [x: string]: any; }>` |  |  |

**Returns:** [boolean](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean>)

##### showTooltipContent

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

Show tooltip with content on hover over feature

```
showTooltipContent(feature: Feature<Geometry, { [x: string]: any; }>): boolean
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [feature](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L1141-L1141>) | `Feature<Geometry, { [x: string]: any; }>` |  | • to show popup on |

**Returns:** [boolean](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean>)

##### targetFeature

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

**Modifiers:** optional

**Type:** `Feature<Geometry, { [x: string]: any; }>`

##### tooltipOverlay

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

**Type:** `Overlay`

##### zoomCluster

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

Zoom to cluster features

```
zoomCluster(clusterFeatures: Feature<Geometry, { [x: string]: any; }>[]): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [clusterFeatures](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L900-L900>) | `Feature<Geometry, { [x: string]: any; }>[]` |  | • features to zoom in |

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

##### zoomToFeatures

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

Zoom to features, gets coordinates of features and creates bounding extent

```
zoomToFeatures(features: Feature<Geometry, { [x: string]: any; }>[], zoomLevel: number, shouldAnimate?: boolean = true): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [features](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L954-L954>) | `Feature<Geometry, { [x: string]: any; }>[]` |  | • list of features to zoom in, if empty all features will be zoomed to |
| [zoomLevel](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L954-L954>) | `number` |  | • number for level to zoom in |
| [shouldAnimate](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L954-L954>) (optional) | `boolean` | `true` |  |

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

##### zoomToGeoJson

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

Zoom to GeoJson using coordinates of point of click

```
zoomToGeoJson(coordinate: Coordinate, zoomLevel: number, shouldAnimate?: boolean = true): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [coordinate](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L973-L973>) | `Coordinate` |  | • coordinates of point of click |
| [zoomLevel](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L973-L973>) | `number` |  | • number for level to zoom in |
| [shouldAnimate](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L973-L973>) (optional) | `boolean` | `true` |  |

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

##### zoomToPoints

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

Zoom to features, gets coordinates of points and creates bounding extent

```
zoomToPoints(points: MapPoint[], zoomLevel: number, shouldAnimate?: boolean = true): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [points](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L937-L937>) | `MapPoint[]` |  | • list of points to zoom in, if empty all points will be zoomed to, need to be the same reference as the input |
| [zoomLevel](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L937-L937>) | `number` |  | • number for level to zoom in |
| [shouldAnimate](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L937-L937>) (optional) | `boolean` | `true` |  |

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

### Types Documentation

### [ColorPalette](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/color-palette.type.ts#L6-L6>)

**Kind:** type alias

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

```
type ColorPalette = 'status' | 'element'
```

### [MapPoint](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L6-L15>)

**Kind:** interface

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

```
interface MapPoint extends MapPointMetaData
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [description](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L25-L25>) (inherited) | `string` | Marker description, can be simple string or HTML as string<br><br>Inherited from [MapPointMetaData](<index.html#t:MapPointMetaData>) |
| [extraProperties](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L33-L33>) (optional, inherited) | `any` | Extra properties to be passed along (click function consumes it)<br><br>Inherited from [MapPointMetaData](<index.html#t:MapPointMetaData>) |
| [group](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L38-L38>) (optional, inherited) | `number` | If you want your point to be clustered by it's group, you need to set the group id here for this point Color with the same id will be assigned. Must be higher than 0<br><br>Inherited from [MapPointMetaData](<index.html#t:MapPointMetaData>) |
| [lat](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L10-L10>) | `number` | Latitude value for marker |
| [lon](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L14-L14>) | `number` | Longitude value for marker |
| [marker](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L29-L29>) (optional, inherited) | `MarkerOptions` | Marker style<br><br>Inherited from [MapPointMetaData](<index.html#t:MapPointMetaData>) |
| [name](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L21-L21>) (inherited) | `string` | Marker name<br><br>Inherited from [MapPointMetaData](<index.html#t:MapPointMetaData>) |

#### Methods

##### click

[Source for click](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L42-L42>)

**Modifiers:** optional, inherited

Click functionality, do any extra staff when clicking on the point, just create needed logic for click functionality

Inherited from [MapPointMetaData](<index.html#t:MapPointMetaData>)

```
click(extraProperties?: any): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [extraProperties](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L42-L42>) (optional) | `any` |  |  |

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

### [OverlayNativeProperties](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/overlay-native-properties.interface.ts#L8-L18>)

**Kind:** interface

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

```
interface OverlayNativeProperties
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [controls](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/overlay-native-properties.interface.ts#L17-L17>) (optional) | `Control[]` | List of controls to activate for map, additional controls like full screen, etc. can be added here Defaults are zoom in and out |
| [overlay](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/overlay-native-properties.interface.ts#L12-L12>) (optional) | `Overlay` | Layer for popup element, an element to be displayed over the map and attached to a single map location. |

### [ClusterHolder](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L70-L72>)

**Kind:** interface

```
interface ClusterHolder
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [feature](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/si-map.component.ts#L71-L71>) (optional) | `Feature<Geometry, { [x: string]: any; }>` |  |

### [DEFAULT\_CLUSTER\_DISTANCE](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/constants.ts#L19-L19>)

**Kind:** constant

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

```
number = 40
```

### [DEFAULT\_FEATURE\_SELECT\_ZOOM](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/constants.ts#L15-L15>)

**Kind:** constant

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

```
number = 10
```

### [DEFAULT\_FEATURE\_CLICK\_ZOOM](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/constants.ts#L16-L16>)

**Kind:** constant

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

```
number = 15
```

### [DEFAULT\_CLUSTER\_CLICK\_ZOOM](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/constants.ts#L17-L17>)

**Kind:** constant

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

```
number = 15
```

### [DEFAULT\_GLOBAL\_ZOOM](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/constants.ts#L18-L18>)

**Kind:** constant

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

```
number = 5
```

### [MarkerOptions](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L57-L75>)

**Kind:** interface

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

```
interface MarkerOptions
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [color](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L66-L66>) (optional) | `string` | Color of the marker, HEX or css compliant color value. Only use when a semantic status isn't working for the use-case. |
| [icon](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L74-L74>) (optional) | `IconMarkerOptions` | Icon options |
| [status](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L70-L70>) (optional) | `MarkerStatusType` | Semantic status for coloring. This is also theme-aware. |
| [type](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L61-L61>) | `"status" \| "icon" \| "dot"` | Visual representation of marker |

### [MapPointMetaData](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L17-L43>)

**Kind:** interface

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

```
interface MapPointMetaData
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [description](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L25-L25>) | `string` | Marker description, can be simple string or HTML as string |
| [extraProperties](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L33-L33>) (optional) | `any` | Extra properties to be passed along (click function consumes it) |
| [group](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L38-L38>) (optional) | `number` | If you want your point to be clustered by it's group, you need to set the group id here for this point Color with the same id will be assigned. Must be higher than 0 |
| [marker](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L29-L29>) (optional) | `MarkerOptions` | Marker style |
| [name](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L21-L21>) | `string` | Marker name |

#### Methods

##### click

[Source for click](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L42-L42>)

**Modifiers:** optional

Click functionality, do any extra staff when clicking on the point, just create needed logic for click functionality

```
click(extraProperties?: any): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [extraProperties](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L42-L42>) (optional) | `any` |  |  |

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

### [MarkerStatusType](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L47-L48>)

**Kind:** type alias

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

```
type MarkerStatusType = 'success' | 'info' | 'warning' | 'danger' | 'caution' | 'critical' | 'default' | 'unknown'
```

### [IconMarkerOptions](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L77-L86>)

**Kind:** interface

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

```
interface IconMarkerOptions
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [scale](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L85-L85>) (optional) | `number` | Scale value for marker |
| [src](<https://github.com/siemens/element/blob/main/projects/maps-ng/src/components/si-map/models/map-point.interface.ts#L81-L81>) (optional) | `string` | Path to the icon image |
