Class MapViewport
A geographic viewport: a centre point, a scale, and a rotation. No pixel size.
public sealed record MapViewport : IEquatable<MapViewport>
- Inheritance
-
MapViewport
- Implements
- Inherited Members
Constructors
MapViewport(double, double, double, double)
A geographic viewport: a centre point, a scale, and a rotation. No pixel size.
public MapViewport(double CenterLongitude, double CenterLatitude, double ScaleDenominator, double RotationDegrees = 0)
Parameters
CenterLongitudedoubleCentre longitude (decimal degrees, WGS-84).
CenterLatitudedoubleCentre latitude (decimal degrees, WGS-84).
ScaleDenominatordoubleMap scale denominator (e.g.
50000for 1:50000). Must be positive.RotationDegreesdoubleClockwise rotation in degrees;
0is north-up.
Properties
CenterLatitude
Centre latitude (decimal degrees, WGS-84).
public double CenterLatitude { get; init; }
Property Value
CenterLongitude
Centre longitude (decimal degrees, WGS-84).
public double CenterLongitude { get; init; }
Property Value
RotationDegrees
Clockwise rotation in degrees; 0 is north-up.
public double RotationDegrees { get; init; }
Property Value
ScaleDenominator
Map scale denominator (e.g. 50000 for 1:50000). Must be positive.
public double ScaleDenominator { get; init; }