# Maps

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-livecharts/geo/struct-maps/

**struct** · [`ferroui-livecharts`](/docs/0.5.0/api/ferroui-livecharts/) · v0.5.0

```rust
struct Maps
```

The maps of the source (`Maps`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/geo/maps.rs#L15)

## Members

- [`world_map`](#function-world_map)
- [`map_from_geojson`](#function-map_from_geojson)
- [`build_projector`](#function-build_projector)

<a id="function-world_map"></a>

### world_map

```rust
fn world_map() -> &'static DrawnMap
```

The bundled world map (`GetWorldMap`), parsed once and shared.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/geo/maps.rs#L19)

<a id="function-map_from_geojson"></a>

### map_from_geojson

```rust
fn map_from_geojson(json: &str) -> Result<DrawnMap, ChartError>
```

A map of one layer, `default`, read from GeoJSON text (`GetMapFromStreamReader`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/geo/maps.rs#L27)

<a id="function-build_projector"></a>

### build_projector

```rust
fn build_projector(projection: MapProjection, map_size: [f64; 2], base_offset: [f64; 2], center: (f64, f64), bounds: GeographicBounds) -> MapProjector
```

A projector of the projection fitted into the map area (`BuildProjector`): the area keeps
the aspect ratio of the projection, centred on the shorter side, and the orthographic
globe faces `center` (longitude, latitude) in degrees.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/geo/maps.rs#L34)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
