mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-01-31 12:54:15 +01:00
Minor improvements
This commit is contained in:
parent
7e6b187fd7
commit
9280743c8a
|
|
@ -10,10 +10,6 @@ namespace MapControl
|
|||
{
|
||||
public class WmtsTileMatrixSet
|
||||
{
|
||||
public string Identifier { get; }
|
||||
public string SupportedCrs { get; }
|
||||
public IList<WmtsTileMatrix> TileMatrixes { get; }
|
||||
|
||||
public WmtsTileMatrixSet(string identifier, string supportedCrs, IEnumerable<WmtsTileMatrix> tileMatrixes)
|
||||
{
|
||||
if (string.IsNullOrEmpty(identifier))
|
||||
|
|
@ -35,5 +31,9 @@ namespace MapControl
|
|||
SupportedCrs = supportedCrs;
|
||||
TileMatrixes = tileMatrixes.OrderBy(m => m.Scale).ToList();
|
||||
}
|
||||
|
||||
public string Identifier { get; }
|
||||
public string SupportedCrs { get; }
|
||||
public IList<WmtsTileMatrix> TileMatrixes { get; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,13 +16,6 @@ namespace MapControl
|
|||
/// </summary>
|
||||
public struct Matrix
|
||||
{
|
||||
public double M11 { get; set; }
|
||||
public double M12 { get; set; }
|
||||
public double M21 { get; set; }
|
||||
public double M22 { get; set; }
|
||||
public double OffsetX { get; set; }
|
||||
public double OffsetY { get; set; }
|
||||
|
||||
public Matrix(double m11, double m12, double m21, double m22, double offsetX, double offsetY)
|
||||
{
|
||||
M11 = m11;
|
||||
|
|
@ -33,6 +26,13 @@ namespace MapControl
|
|||
OffsetY = offsetY;
|
||||
}
|
||||
|
||||
public double M11 { get; set; }
|
||||
public double M12 { get; set; }
|
||||
public double M21 { get; set; }
|
||||
public double M22 { get; set; }
|
||||
public double OffsetX { get; set; }
|
||||
public double OffsetY { get; set; }
|
||||
|
||||
public static implicit operator XamlMedia.Matrix(Matrix m)
|
||||
{
|
||||
return new XamlMedia.Matrix(m.M11, m.M12, m.M21, m.M22, m.OffsetX, m.OffsetY);
|
||||
|
|
|
|||
|
|
@ -9,15 +9,15 @@ namespace MapControl
|
|||
/// </summary>
|
||||
public struct Point
|
||||
{
|
||||
public double X { get; set; }
|
||||
public double Y { get; set; }
|
||||
|
||||
public Point(double x, double y)
|
||||
{
|
||||
X = x;
|
||||
Y = y;
|
||||
}
|
||||
|
||||
public double X { get; set; }
|
||||
public double Y { get; set; }
|
||||
|
||||
public static implicit operator Windows.Foundation.Point(Point p)
|
||||
{
|
||||
return new Windows.Foundation.Point(p.X, p.Y);
|
||||
|
|
|
|||
|
|
@ -6,15 +6,15 @@ namespace MapControl
|
|||
{
|
||||
public struct Vector
|
||||
{
|
||||
public double X { get; set; }
|
||||
public double Y { get; set; }
|
||||
|
||||
public Vector(double x, double y)
|
||||
{
|
||||
X = x;
|
||||
Y = y;
|
||||
}
|
||||
|
||||
public double X { get; set; }
|
||||
public double Y { get; set; }
|
||||
|
||||
public static implicit operator Windows.Foundation.Point(Vector v)
|
||||
{
|
||||
return new Windows.Foundation.Point(v.X, v.Y);
|
||||
|
|
|
|||
Loading…
Reference in a new issue