# LayerGeometry

The geometry of a decoded feature: the GeoJSON types a layer can draw.
Positions keep longitude first and drop any third value (depth is mapped
into a field instead).

This is a type alias exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import type { LayerGeometry } from "@mapcairn/core";
 
type LayerGeometry = {
    readonly type: "Point";
    readonly coordinates: Position;
} | {
    readonly type: "LineString";
    readonly coordinates: readonly Position[];
} | {
    readonly type: "MultiLineString";
    readonly coordinates: readonly (readonly Position[])[];
} | {
    readonly type: "Polygon";
    readonly coordinates: readonly (readonly Position[])[];
} | {
    readonly type: "MultiPolygon";
    readonly coordinates: readonly (readonly (readonly Position[])[])[];
};
```

## See also

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

Source: [packages/core/src/ports/layers.ts:20](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/ports/layers.ts#L20)
