# MapPlacement

What it takes to place marks drawn over the map (the pin, the measure line,
drawn shapes) on the screen: the map's shape, its view, and the adapter's
`project` and `isVisible`.

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

## Signature

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

## Properties

### projection

```ts
readonly projection: MapProjection;
```

Whether the map is flat or a globe.

### view

```ts
readonly view: Pick<ViewState, "center" | "zoom">;
```

The centre and zoom the positions are placed against.

## Methods

### isVisible

```ts
isVisible(position: LatLng): boolean;
```

Whether a position is on the side of the map the person can see.

- `position` (`LatLng`)

### project

```ts
project(position: LatLng): PixelPoint;
```

The pixel of a position, as the adapter's `project` gives it.

- `position` (`LatLng`)

## See also

- [`LatLng`](https://docs.mapcairn.com/api/core/LatLng.md)
- [`PixelPoint`](https://docs.mapcairn.com/api/core/PixelPoint.md)
- [`MapProjection`](https://docs.mapcairn.com/api/core/MapProjection.md)
- [`ViewState`](https://docs.mapcairn.com/api/core/ViewState.md)

Source: [packages/core/src/globe/placement.ts:18](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/globe/placement.ts#L18)
