# MapStyledShape

One polygon or line of a styled shape layer.

This is an interface exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import type { MapStyledShape } from "@mapcairn/core";
 
interface MapStyledShape
```

## Properties

### geometry

```ts
readonly geometry: LayerGeometry;
```

The polygon or line to draw.

### id

```ts
readonly id: string;
```

Unique among the shapes of one layer.

### label

```ts
readonly label?: string;
```

Text drawn on the shape, when the layer has labels and the engine can draw them.

### look

```ts
readonly look: MapShapeLook;
```

How it is drawn.

## See also

- [`LayerGeometry`](https://docs.mapcairn.com/api/core/LayerGeometry.md)
- [`MapShapeLook`](https://docs.mapcairn.com/api/core/MapShapeLook.md)

Source: [packages/core/src/ports/map.ts:171](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/ports/map.ts#L171)
