mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
SupportedCrsIds
This commit is contained in:
parent
7da0f7f9af
commit
5bba4d6a1b
6 changed files with 11 additions and 11 deletions
|
|
@ -81,7 +81,7 @@ namespace MapControl
|
|||
/// <summary>
|
||||
/// Gets a collection of all CRSs supported by a WMS.
|
||||
/// </summary>
|
||||
public override IReadOnlyCollection<string> SupportedMapProjections => mapProjections;
|
||||
public override IReadOnlyCollection<string> SupportedCrsIds => supportedCrsIds;
|
||||
|
||||
/// <summary>
|
||||
/// Loads an XElement from the URL returned by GetCapabilitiesRequestUri().
|
||||
|
|
@ -342,7 +342,7 @@ namespace MapControl
|
|||
return uri.Replace(" ", "%20");
|
||||
}
|
||||
|
||||
private List<string> mapProjections;
|
||||
private List<string> supportedCrsIds;
|
||||
|
||||
private async void OnLoaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
|
@ -357,7 +357,7 @@ namespace MapControl
|
|||
var ns = capabilities.Name.Namespace;
|
||||
var capability = capabilities.Element(ns + "Capability");
|
||||
|
||||
mapProjections = capability
|
||||
supportedCrsIds = capability
|
||||
.Element(ns + "Layer")
|
||||
.Descendants(ns + "CRS")
|
||||
.Select(e => e.Value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue