# ChartMapViewport

Defines the longitude and latitude window rendered by a dotted map.

 Struct  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartMapViewport.cs:45](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapViewport.cs#L45)

**Base**

`ValueType`

**Modifiers**

sealed

Defines the longitude and latitude window rendered by a dotted map.

## Inheritance

- ValueType
- ChartMapViewport

## Usage

 Explore 20 API references to this type 

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 13

- Property [ChartMapDefinition.PolygonViewport](/api/chartforgex-core-chartmapdefinition/#property-polygonviewport)
- Property [ChartMapGeoJsonOptions.PolygonViewport](/api/chartforgex-core-chartmapgeojsonoptions/#property-polygonviewport)
- Property [ChartMapOptions.Viewport](/api/chartforgex-core-chartmapoptions/#property-viewport)
- Method [ChartMapViewport.AcrossAntimeridian](/api/chartforgex-core-chartmapviewport/#method-acrossantimeridian-string-double-double-double-double-chartforgex-core-chartmapgeojsonprojection)
- Method [ChartMapViewport.Africa](/api/chartforgex-core-chartmapviewport/#method-africa)
- Method [ChartMapViewport.Asia](/api/chartforgex-core-chartmapviewport/#method-asia)
- Method [ChartMapViewport.Europe](/api/chartforgex-core-chartmapviewport/#method-europe)
- Method [ChartMapViewport.NorthAmerica](/api/chartforgex-core-chartmapviewport/#method-northamerica)
- Method [ChartMapViewport.Oceania](/api/chartforgex-core-chartmapviewport/#method-oceania)
- Method [ChartMapViewport.Poland](/api/chartforgex-core-chartmapviewport/#method-poland)
- Method [ChartMapViewport.SouthAmerica](/api/chartforgex-core-chartmapviewport/#method-southamerica)
- Method [ChartMapViewport.World](/api/chartforgex-core-chartmapviewport/#method-world)
- Property [TopologyChart.MapViewport](/api/chartforgex-topology-topologychart/#property-mapviewport)

### Accepted by parameters 7

- Method [ChartMapDefinition.WithPolygonViewport](/api/chartforgex-core-chartmapdefinition/#method-withpolygonviewport-chartforgex-core-chartmapviewport) parameter `viewport`
- Extension method [ChartMapGeoJsonOptions.PolygonViewport](/api/chartforgex-core-chartmapgeojsonoptions/#extension-polygonviewport-chartforgex-core-chartmapgeojsonoptions-nullable-chartforgex-core-chartmapviewport) parameter `value`
- Method [ChartMapGeoJsonOptionsFluent.PolygonViewport](/api/chartforgex-core-chartmapgeojsonoptionsfluent/#method-polygonviewport-chartforgex-core-chartmapgeojsonoptions-nullable-chartforgex-core-chartmapviewport) parameter `value`
- Extension method [ChartMapOptions.Viewport](/api/chartforgex-core-chartmapoptions/#extension-viewport-chartforgex-core-chartmapoptions-chartforgex-core-chartmapviewport) parameter `value`
- Method [ChartMapOptionsFluent.Viewport](/api/chartforgex-core-chartmapoptionsfluent/#method-viewport-chartforgex-core-chartmapoptions-chartforgex-core-chartmapviewport) parameter `value`
- Extension method [TopologyChart.MapViewport](/api/chartforgex-topology-topologychart/#extension-mapviewport-chartforgex-topology-topologychart-chartforgex-core-chartmapviewport) parameter `value`
- Method [TopologyChartFluent.MapViewport](/api/chartforgex-topology-topologychartfluent/#method-mapviewport-chartforgex-topology-topologychart-chartforgex-core-chartmapviewport) parameter `value`

 Filter members   

    Show inherited   

 

## Constructors

 `public ChartMapViewport(string name, double minimumLongitude, double maximumLongitude, double minimumLatitude, double maximumLatitude)` [#](#constructor-ctor-string-double-double-double-double) 

[ChartMapViewport.cs:45](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapViewport.cs#L45)

Initializes a new instance of the [ChartMapViewport](/api/chartforgex-core-chartmapviewport/) struct.

Parameters

**name string required**

**minimumLongitude double required**

**maximumLongitude double required**

**minimumLatitude double required**

**maximumLatitude double required**

## Methods

 `public static ChartMapViewport AcrossAntimeridian(string name, double westLongitude, double eastLongitude, double minimumLatitude, double maximumLatitude, ChartMapGeoJsonProjection projection = Equirectangular)` [#](#method-acrossantimeridian-string-double-double-double-double-chartforgex-core-chartmapgeojsonprojection) 

[ChartMapViewport.cs:78](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapViewport.cs#L78)

Creates an explicit eastward point/route window crossing +180/-180 without rewriting authored source coordinates.

Parameters

**name string required**

The nonblank viewport name.

**westLongitude double required**

Raw western boundary in [-180,180], strictly greater than the raw eastern boundary.

**eastLongitude double required**

Raw eastern boundary in [-180,180]. The increasing span across the seam must be positive and less than one turn.

**minimumLatitude double required**

Inclusive southern raw latitude in [-90,90].

**maximumLatitude double required**

Inclusive northern raw latitude, greater than the southern boundary.

**projection ChartForgeX.Core.ChartMapGeoJsonProjection = Equirectangular optional**

A cylindrical geographic projection. Web Mercator keeps its existing polar latitude clamp; United States composites are rejected.

Returns

 `ChartMapViewport` An immutable viewport retaining both raw longitude bounds. 

 `public static ChartMapViewport Africa()` [#](#method-africa) 

[ChartMapViewport.cs:114](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapViewport.cs#L114)

Gets an Africa-focused viewport.

Returns

 `ChartMapViewport` 

 `public static ChartMapViewport Asia()` [#](#method-asia) 

[ChartMapViewport.cs:119](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapViewport.cs#L119)

Gets an Asia-focused viewport.

Returns

 `ChartMapViewport` 

 `public static ChartMapViewport Europe()` [#](#method-europe) 

[ChartMapViewport.cs:99](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapViewport.cs#L99)

Gets a Europe-focused viewport.

Returns

 `ChartMapViewport` 

 `public static ChartMapViewport NorthAmerica()` [#](#method-northamerica) 

[ChartMapViewport.cs:104](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapViewport.cs#L104)

Gets a North America-focused viewport.

Returns

 `ChartMapViewport` 

 `public static ChartMapViewport Oceania()` [#](#method-oceania) 

[ChartMapViewport.cs:124](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapViewport.cs#L124)

Gets an Oceania-focused viewport.

Returns

 `ChartMapViewport` 

 `public static ChartMapViewport Poland()` [#](#method-poland) 

[ChartMapViewport.cs:129](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapViewport.cs#L129)

Gets a Poland-focused viewport.

Returns

 `ChartMapViewport` 

 `public static ChartMapViewport SouthAmerica()` [#](#method-southamerica) 

[ChartMapViewport.cs:109](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapViewport.cs#L109)

Gets a South America-focused viewport.

Returns

 `ChartMapViewport` 

 `public static ChartMapViewport World()` [#](#method-world) 

[ChartMapViewport.cs:94](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapViewport.cs#L94)

Gets the default world map viewport.

Returns

 `ChartMapViewport` 

## Inherited Methods

 `public override bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from ValueType

Parameters

**obj object? required**

Returns

 `bool` 

 `public override int GetHashCode()` [#](#method-gethashcode) 

Inherited from ValueType

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public override string? ToString()` [#](#method-tostring) 

Inherited from ValueType

Returns

 `string?` 

## Properties

 `public bool CrossesAntimeridian { get; }` [#](#property-crossesantimeridian) 

[ChartMapViewport.cs:35](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapViewport.cs#L35)

Gets whether raw longitude bounds cross the antimeridian. Ordered constructor windows remain false.

 `public double LongitudeSpan { get; }` [#](#property-longitudespan) 

[ChartMapViewport.cs:37](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapViewport.cs#L37)

Gets the positive increasing unwrapped longitude span in degrees. Raw west/east values are unchanged.

 `public ChartMapGeoJsonProjection? GeographicProjection { get; }` [#](#property-geographicprojection) 

[ChartMapViewport.cs:39](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapViewport.cs#L39)

Gets the explicit existing projection of a seam-crossing point/route window; null retains ordinary composition projection selection.

## Fields

 `public readonly string Name` [#](#field-name) 

[ChartMapViewport.cs:12](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapViewport.cs#L12)

Gets the viewport label.

 `public readonly double MinimumLongitude` [#](#field-minimumlongitude) 

[ChartMapViewport.cs:17](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapViewport.cs#L17)

Gets the minimum longitude in degrees.

 `public readonly double MaximumLongitude` [#](#field-maximumlongitude) 

[ChartMapViewport.cs:22](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapViewport.cs#L22)

Gets the maximum longitude in degrees.

 `public readonly double MinimumLatitude` [#](#field-minimumlatitude) 

[ChartMapViewport.cs:27](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapViewport.cs#L27)

Gets the minimum latitude in degrees.

 `public readonly double MaximumLatitude` [#](#field-maximumlatitude) 

[ChartMapViewport.cs:32](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapViewport.cs#L32)

Gets the maximum latitude in degrees.

<!-- PowerForge markdown artifact sha256:38EEA14D93BEDB66D8DEE79476BC388652C53AAE3DE90079FACCF1C04EF24BFF -->
