# MapShapeLook

How one polygon or line is drawn, already worked out from its layer's
style. The adapter fills `colour` at `fillOpacity` (polygons) or strokes
with it (lines), draws a polygon's outline in the palette's ink, hatches
with `pattern` in that ink, and dashes with `dash`.

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

## Signature

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

## Properties

### colour

```ts
readonly colour: string;
```

A hex colour, such as `#e69f00`.

### dash

```ts
readonly dash: LineDash;
```

How the outline or line is dashed.

### fillOpacity

```ts
readonly fillOpacity: number;
```

From 0 to 1. Polygons only.

### pattern

```ts
readonly pattern: FillPattern;
```

The hatching drawn over a polygon, or `none`.

### width

```ts
readonly width: number;
```

Line width, or outline width for a polygon, in CSS pixels.

## See also

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

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