mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
IMapLayer.SupportedMapProjections
This commit is contained in:
parent
046cebb341
commit
b5dac4a854
8 changed files with 144 additions and 103 deletions
|
|
@ -6,16 +6,16 @@ namespace MapControl
|
|||
{
|
||||
public class WmtsTileMatrixSet
|
||||
{
|
||||
public WmtsTileMatrixSet(string identifier, string supportedCrs, IEnumerable<WmtsTileMatrix> tileMatrixes)
|
||||
public WmtsTileMatrixSet(string identifier, string supportedMapProjection, IEnumerable<WmtsTileMatrix> tileMatrixes)
|
||||
{
|
||||
if (string.IsNullOrEmpty(identifier))
|
||||
{
|
||||
throw new ArgumentException($"The {nameof(identifier)} argument must not be null or empty.", nameof(identifier));
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(supportedCrs))
|
||||
if (string.IsNullOrEmpty(supportedMapProjection))
|
||||
{
|
||||
throw new ArgumentException($"The {nameof(supportedCrs)} argument must not be null or empty.", nameof(supportedCrs));
|
||||
throw new ArgumentException($"The {nameof(supportedMapProjection)} argument must not be null or empty.", nameof(supportedMapProjection));
|
||||
}
|
||||
|
||||
if (tileMatrixes == null || !tileMatrixes.Any())
|
||||
|
|
@ -24,12 +24,12 @@ namespace MapControl
|
|||
}
|
||||
|
||||
Identifier = identifier;
|
||||
SupportedCrs = supportedCrs;
|
||||
SupportedMapProjection = supportedMapProjection;
|
||||
TileMatrixes = tileMatrixes.OrderBy(m => m.Scale).ToList();
|
||||
}
|
||||
|
||||
public string Identifier { get; }
|
||||
public string SupportedCrs { get; }
|
||||
public string SupportedMapProjection { get; }
|
||||
public IList<WmtsTileMatrix> TileMatrixes { get; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue