mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Version 4.17.0: Added support for WMTS
This commit is contained in:
parent
e650c9081f
commit
e821e39841
38 changed files with 991 additions and 307 deletions
39
MapControl/Shared/WmtsTileMatrixSet.cs
Normal file
39
MapControl/Shared/WmtsTileMatrixSet.cs
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
|
||||
// © 2020 Clemens Fischer
|
||||
// Licensed under the Microsoft Public License (Ms-PL)
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace MapControl
|
||||
{
|
||||
public class WmtsTileMatrixSet
|
||||
{
|
||||
public WmtsTileMatrixSet(string identifier, string supportedCrs, IEnumerable<WmtsTileMatrix> tileMatrixes)
|
||||
{
|
||||
if (string.IsNullOrEmpty(identifier))
|
||||
{
|
||||
throw new ArgumentException("The parameter identifier must not be null or empty.");
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(supportedCrs))
|
||||
{
|
||||
throw new ArgumentException("The parameter supportedCrs must not be null or empty.");
|
||||
}
|
||||
|
||||
if (tileMatrixes == null || tileMatrixes.Count() <= 0)
|
||||
{
|
||||
throw new ArgumentException("The parameter tileMatrixes must not be null or an empty collection.");
|
||||
}
|
||||
|
||||
Identifier = identifier;
|
||||
SupportedCrs = supportedCrs;
|
||||
TileMatrixes = tileMatrixes.OrderBy(m => m.Scale).ToList();
|
||||
}
|
||||
|
||||
public string Identifier { get; }
|
||||
public string SupportedCrs { get; }
|
||||
public IList<WmtsTileMatrix> TileMatrixes { get; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue