# GeoMapMeasurement

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-livecharts/geo_map_chart_engine/struct-geomapmeasurement/

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

```rust
struct GeoMapMeasurement
```

A measured map: the scene, the projector and viewport it was drawn with, and its lands.

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

## Members

- [`scene`](#struct_field-scene)
- [`projector`](#struct_field-projector)
- [`viewport`](#struct_field-viewport)
- [`viewport_center`](#struct_field-viewport_center)
- [`lands`](#struct_field-lands)
- [`project`](#function-project)
- [`unproject`](#function-unproject)
- [`land`](#function-land)
- [`find_land_at`](#function-find_land_at)

<a id="struct_field-scene"></a>

### scene

```rust
scene: Scene
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/geo_map_chart_engine.rs#L380)

<a id="struct_field-projector"></a>

### projector

```rust
projector: crate::geo::MapProjector
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/geo_map_chart_engine.rs#L381)

<a id="struct_field-viewport"></a>

### viewport

```rust
viewport: MapViewport
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/geo_map_chart_engine.rs#L382)

<a id="struct_field-viewport_center"></a>

### viewport_center

```rust
viewport_center: ferroui_base::Point
```

The centre of the control, about which the viewport zooms.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/geo_map_chart_engine.rs#L384)

<a id="struct_field-lands"></a>

### lands

```rust
lands: Vec<GeoLand>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/geo_map_chart_engine.rs#L385)

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

### project

```rust
fn project(self: &Self, longitude: f64, latitude: f64) -> Option<Point>
```

The screen position of a coordinate (`GeoMapChart.Project`), `None` on the far side of a
globe.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/geo_map_chart_engine.rs#L390)

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

### unproject

```rust
fn unproject(self: &Self, point: Point) -> Option<(f64, f64)>
```

The coordinate of a screen position (`GeoMapChart.Unproject`), `None` outside the disc of
a globe.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/geo_map_chart_engine.rs#L406)

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

### land

```rust
fn land(self: &Self, id: PointId) -> Option<&GeoLand>
```

The land of a hit region.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/geo_map_chart_engine.rs#L415)

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

### find_land_at

```rust
fn find_land_at(self: &Self, point: Point) -> Option<&GeoLand>
```

The first land whose shape contains the screen position (`FindLandAt`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/geo_map_chart_engine.rs#L420)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`

## Availability

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