Skip to content
ChartForgeX
Struct

ChartMapViewport

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
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.

Accepted by parameters 7

Constructors

public ChartMapViewport(string name, double minimumLongitude, double maximumLongitude, double minimumLatitude, double maximumLatitude) #

Initializes a new instance of the 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) #

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() #

Gets an Africa-focused viewport.

public static ChartMapViewport Asia() #

Gets an Asia-focused viewport.

public static ChartMapViewport Europe() #

Gets a Europe-focused viewport.

public static ChartMapViewport NorthAmerica() #

Gets a North America-focused viewport.

public static ChartMapViewport Oceania() #

Gets an Oceania-focused viewport.

public static ChartMapViewport Poland() #

Gets a Poland-focused viewport.

public static ChartMapViewport SouthAmerica() #

Gets a South America-focused viewport.

public static ChartMapViewport World() #

Gets the default world map viewport.

Properties

public bool CrossesAntimeridian { get; } #

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

public double LongitudeSpan { get; } #

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

public ChartMapGeoJsonProjection? GeographicProjection { get; } #

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

Fields

public readonly string Name #

Gets the viewport label.

public readonly double MinimumLongitude #

Gets the minimum longitude in degrees.

public readonly double MaximumLongitude #

Gets the maximum longitude in degrees.

public readonly double MinimumLatitude #

Gets the minimum latitude in degrees.

public readonly double MaximumLatitude #

Gets the maximum latitude in degrees.