# refuseBoxOnGlobe

Refuses a box view on a globe, which no adapter can frame reliably yet: the
camera that fits a box is a flat one, and once the projection is a sphere
the box can lie beyond what the sphere shows. A centre and zoom is drawn on
either. A later step may frame a box on a globe.

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

## Signature

```ts
import { refuseBoxOnGlobe } from "@mapcairn/core";
 
function refuseBoxOnGlobe(view: MapImageView, projection: MapProjection): void;
```

## Parameters

- `view` (`MapImageView`)
- `projection` (`MapProjection`)

## Returns

`void`

## Throws

- MapImageExportError of kind `invalid`.

## See also

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

Source: [packages/core/src/imageExport/plan.ts:113](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/imageExport/plan.ts#L113)
