# shapesToGeoJsonText

The text of the GeoJSON file for the shapes: [`shapesToGeoJson`](https://docs.mapcairn.com/api/core/shapesToGeoJson.md) as
JSON indented by two spaces, with every number written as plain decimal
text and none with an exponent (`0.00000078`, not `7.8e-7`), as the CSV and
the WKT are. The text is the same as `JSON.stringify(collection, null, 2)`
wherever that has no exponent.

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

## Signature

```ts
import { shapesToGeoJsonText } from "@mapcairn/core";
 
function shapesToGeoJsonText(shapes: readonly DrawShape[]): string;
```

## Parameters

- `shapes` (`readonly DrawShape[]`)

## Returns

`string`

## See also

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

Source: [packages/core/src/draw/export.ts:223](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/draw/export.ts#L223)
