# MapPoint Type documentation

## TypeScript declaration

### [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>)

### Types Documentation

### [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>)

### [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 |

### [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 |
